diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-29 05:57:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-29 05:57:59 +0000 |
commit | 0723969e870c96cd83062fba986c5c7c5a4707c9 (patch) | |
tree | e3ee73e6140b4cbf5e85a534786f61f67758921c /lib | |
parent | 450b6d29988fa01e828e5b7917a47726a4dd46ec (diff) | |
download | external_llvm-0723969e870c96cd83062fba986c5c7c5a4707c9.zip external_llvm-0723969e870c96cd83062fba986c5c7c5a4707c9.tar.gz external_llvm-0723969e870c96cd83062fba986c5c7c5a4707c9.tar.bz2 |
This is the only file in the system that uses this enum. eliminate it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 4af3725..aea6010 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -915,7 +915,7 @@ CreateMulInstruction(const TargetMachine &target, Function* F, Value* lval, Value* rval, Instruction* destVal, std::vector<MachineInstr*>& mvec, MachineCodeForInstruction& mcfi, - MachineOpCode forceMulOp = INVALID_MACHINE_OPCODE) + MachineOpCode forceMulOp = -1) { unsigned L = mvec.size(); CreateCheapestMulConstInstruction(target,F, lval, rval, destVal, mvec, mcfi); @@ -923,7 +923,7 @@ CreateMulInstruction(const TargetMachine &target, Function* F, // no instructions were added so create MUL reg, reg, reg. // Use FSMULD if both operands are actually floats cast to doubles. // Otherwise, use the default opcode for the appropriate type. - MachineOpCode mulOp = ((forceMulOp != INVALID_MACHINE_OPCODE) + MachineOpCode mulOp = ((forceMulOp != -1) ? forceMulOp : ChooseMulInstructionByType(destVal->getType())); mvec.push_back(BuildMI(mulOp, 3).addReg(lval).addReg(rval) @@ -1115,7 +1115,7 @@ CreateCodeForVariableSizeAlloca(const TargetMachine& target, // Instruction 1: mul numElements, typeSize -> tmpProd // This will optimize the MUL as far as possible. CreateMulInstruction(target, F, numElementsVal, tsizeVal, tmpProd, getMvec, - mcfi, INVALID_MACHINE_OPCODE); + mcfi, -1); // Instruction 2: andn tmpProd, 0x0f -> tmpAndn getMvec.push_back(BuildMI(V9::ADDi, 3).addReg(tmpProd).addSImm(15) @@ -1278,7 +1278,7 @@ SetOperandsForMemInstr(unsigned Opcode, eltSizeVal, /* rval, likely to be constant */ addr, /* result */ mulVec, MachineCodeForInstruction::get(memInst), - INVALID_MACHINE_OPCODE); + -1); assert(mulVec.size() > 0 && "No multiply code created?"); mvec.insert(mvec.end(), mulVec.begin(), mulVec.end()); @@ -2007,7 +2007,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, maskUnsignedResult = true; MachineOpCode forceOp = ((checkCast && BothFloatToDouble(subtreeRoot)) ? (MachineOpCode)V9::FSMULD - : INVALID_MACHINE_OPCODE); + : -1); Instruction* mulInstr = subtreeRoot->getInstruction(); CreateMulInstruction(target, mulInstr->getParent()->getParent(), subtreeRoot->leftChild()->getValue(), @@ -2025,7 +2025,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, maskUnsignedResult = true; MachineOpCode forceOp = ((checkCast && BothFloatToDouble(subtreeRoot)) ? (MachineOpCode)V9::FSMULD - : INVALID_MACHINE_OPCODE); + : -1); Instruction* mulInstr = subtreeRoot->getInstruction(); CreateMulInstruction(target, mulInstr->getParent()->getParent(), subtreeRoot->leftChild()->getValue(), |