/external/llvm/include/llvm/ |
D | Operator.h | 149 static bool isPossiblyExactOpcode(unsigned OpC) { in isPossiblyExactOpcode() argument 150 return OpC == Instruction::SDiv || in isPossiblyExactOpcode() 151 OpC == Instruction::UDiv || in isPossiblyExactOpcode() 152 OpC == Instruction::AShr || in isPossiblyExactOpcode() 153 OpC == Instruction::LShr; in isPossiblyExactOpcode()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 495 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local 499 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 506 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex() 509 } else if (OpC == PPC::RESTORE_CR) { in eliminateFrameIndex() 527 switch (OpC) { in eliminateFrameIndex() 557 if (OpC == PPC::DBG_VALUE || // DBG_VALUE is always Reg+Imm in eliminateFrameIndex() 589 if (OpC != TargetOpcode::INLINEASM) { in eliminateFrameIndex() 590 assert(ImmToIdxMap.count(OpC) && in eliminateFrameIndex() 592 unsigned NewOpcode = ImmToIdxMap.find(OpC)->second; in eliminateFrameIndex()
|
D | PPCISelDAGToDAG.cpp | 781 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; in Select() local 782 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi)); in Select()
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 246 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local 247 if (!OpC) in accumulateGEPOffset() 249 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset() 250 if (!OpC) in accumulateGEPOffset() 252 if (OpC->isZero()) continue; in accumulateGEPOffset() 256 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 263 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
D | ValueTracking.cpp | 1601 ConstantInt *OpC = cast<ConstantInt>(*I); in GetPointerBaseWithConstantOffset() local 1602 if (OpC->isZero()) continue; in GetPointerBaseWithConstantOffset() 1606 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in GetPointerBaseWithConstantOffset() 1609 Offset += OpC->getSExtValue()*Size; in GetPointerBaseWithConstantOffset()
|
D | InstructionSimplify.cpp | 675 ConstantInt *OpC = dyn_cast<ConstantInt>(*I); in accumulateGEPOffset() local 676 if (!OpC) return false; in accumulateGEPOffset() 677 if (OpC->isZero()) continue; in accumulateGEPOffset() 681 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 688 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
D | ConstantFolding.cpp | 1003 unsigned OpC = in ConstantFoldCompareInstOperands() local 1006 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, TD, TLI); in ConstantFoldCompareInstOperands()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalDCE.cpp | 197 if (Constant *OpC = dyn_cast<Constant>(*I)) in MarkUsedGlobalsAsNeeded() local 198 MarkUsedGlobalsAsNeeded(OpC); in MarkUsedGlobalsAsNeeded()
|
/external/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 51 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in GetOffsetFromIndex() local 52 if (OpC == 0) in GetOffsetFromIndex() 54 if (OpC->isZero()) continue; // No offset. in GetOffsetFromIndex() 58 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in GetOffsetFromIndex() 65 Offset += Size*OpC->getSExtValue(); in GetOffsetFromIndex()
|
D | SimplifyLibCalls.cpp | 938 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) { in CallOptimizer() local 939 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32) in CallOptimizer() 940 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty()); in CallOptimizer() 941 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) { in CallOptimizer() local 942 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32) in CallOptimizer() 943 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty()); in CallOptimizer()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 33 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant() local 34 if (!OpC) return false; in ShrinkDemandedConstant() 37 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth()); in ShrinkDemandedConstant() 38 if ((~Demanded & OpC->getValue()) == 0) in ShrinkDemandedConstant() 42 Demanded &= OpC->getValue(); in ShrinkDemandedConstant() 43 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
|
D | InstCombineAddSub.cpp | 430 if (ConstantInt *OpC = dyn_cast<ConstantInt>(Op)) { in EmitGEPOffset() local 431 if (OpC->isZero()) continue; in EmitGEPOffset() 435 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in EmitGEPOffset() 445 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); in EmitGEPOffset()
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1478 unsigned OpC = 0; in X86VisitIntrinsicCall() local 1480 OpC = X86::ADD32rr; in X86VisitIntrinsicCall() 1482 OpC = X86::ADD64rr; in X86VisitIntrinsicCall() 1489 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(OpC), ResultReg) in X86VisitIntrinsicCall()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 325 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { in AddNodeIDOpcode() argument 326 ID.AddInteger(OpC); in AddNodeIDOpcode() 356 unsigned short OpC, SDVTList VTList, in AddNodeIDNode() argument 358 AddNodeIDOpcode(ID, OpC); in AddNodeIDNode()
|