/external/llvm/lib/IR/ |
D | Operator.cpp | 23 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateConstantOffset() local 24 if (!OpC) in accumulateConstantOffset() 26 if (OpC->isZero()) in accumulateConstantOffset() 31 unsigned ElementIdx = OpC->getZExtValue(); in accumulateConstantOffset() 38 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
|
D | Verifier.cpp | 1513 const auto *OpC = dyn_cast<Constant>(U); in visitConstantExprsRecursively() local 1514 if (!OpC) in visitConstantExprsRecursively() 1516 if (isa<GlobalValue>(OpC)) in visitConstantExprsRecursively() 1518 if (!ConstantExprVisited.insert(OpC).second) in visitConstantExprsRecursively() 1520 Stack.push_back(OpC); in visitConstantExprsRecursively()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 212 if (Constant *OpC = dyn_cast<Constant>(Op)) { variable 213 if (OpC->isZeroValue()) 218 if (OpC->getType()->isVectorTy()) 219 OpC = OpC->getSplatValue(); 221 uint64_t OpValue = cast<ConstantInt>(OpC)->getZExtValue(); 231 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 720 unsigned OpC = MI.getOpcode(); in usesIXAddr() local 722 switch (OpC) { in usesIXAddr() 776 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local 778 if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) { in eliminateFrameIndex() 785 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 791 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex() 794 } else if (OpC == PPC::RESTORE_CR) { in eliminateFrameIndex() 797 } else if (OpC == PPC::SPILL_CRBIT) { in eliminateFrameIndex() 800 } else if (OpC == PPC::RESTORE_CRBIT) { in eliminateFrameIndex() 803 } else if (OpC == PPC::SPILL_VRSAVE) { in eliminateFrameIndex() [all …]
|
D | PPCInstrInfo.cpp | 1303 unsigned OpC = MI->getOpcode(); in PredicateInstruction() local 1304 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction() 1326 } else if (OpC == PPC::B) { in PredicateInstruction() 1360 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || in PredicateInstruction() 1361 OpC == PPC::BCTRL || OpC == PPC::BCTRL8) { in PredicateInstruction() 1365 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8; in PredicateInstruction() 1461 unsigned OpC = MI->getOpcode(); in isPredicable() local 1462 switch (OpC) { in isPredicable() 1511 int OpC = CmpInstr->getOpcode(); in optimizeCompareInstr() local 1516 if (OpC == PPC::FCMPUS || OpC == PPC::FCMPUD) in optimizeCompareInstr() [all …]
|
D | PPCISelDAGToDAG.cpp | 725 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; in SelectInt64Direct() local 726 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi)); in SelectInt64Direct()
|
/external/llvm/include/llvm/IR/ |
D | Operator.h | 145 static bool isPossiblyExactOpcode(unsigned OpC) { in isPossiblyExactOpcode() argument 146 return OpC == Instruction::SDiv || in isPossiblyExactOpcode() 147 OpC == Instruction::UDiv || in isPossiblyExactOpcode() 148 OpC == Instruction::AShr || in isPossiblyExactOpcode() 149 OpC == Instruction::LShr; in isPossiblyExactOpcode()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 1130 if (auto *OpC = dyn_cast<CallInst>(Op1)) { in optimizePow() local 1137 Function *OpCCallee = OpC->getCalledFunction(); in optimizePow() 1141 B.CreateFMul(OpC->getArgOperand(0), Op2, "mul"), in optimizePow() 1239 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) { in optimizeExp2() local 1240 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32) in optimizeExp2() 1241 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty()); in optimizeExp2() 1242 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) { in optimizeExp2() local 1243 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32) in optimizeExp2() 1244 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty()); in optimizeExp2() 1355 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeLog() local [all …]
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 269 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local 270 if (!OpC) in accumulateGEPOffset() 272 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset() 273 if (!OpC) in accumulateGEPOffset() 275 if (OpC->isZero()) continue; in accumulateGEPOffset() 279 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 286 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
D | ConstantFolding.cpp | 1177 unsigned OpC = in ConstantFoldCompareInstOperands() local 1180 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, DL, TLI); in ConstantFoldCompareInstOperands()
|
D | ValueTracking.cpp | 1838 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); in isGEPKnownNonNull() local 1839 unsigned ElementIdx = OpC->getZExtValue(); in isGEPKnownNonNull() 1853 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) { in isGEPKnownNonNull() local 1854 if (!OpC->isZero()) in isGEPKnownNonNull()
|
D | ScalarEvolution.cpp | 5685 Instruction::BinaryOps OpC; in computeShiftCompareExitLimit() local 5697 if (MatchPositiveShift(LHS, V, OpC)) { in computeShiftCompareExitLimit() 5698 PostShiftOpCode = OpC; in computeShiftCompareExitLimit()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 35 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant() local 36 if (!OpC) return false; in ShrinkDemandedConstant() 39 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth()); in ShrinkDemandedConstant() 40 if ((~Demanded & OpC->getValue()) == 0) in ShrinkDemandedConstant() 44 Demanded &= OpC->getValue(); in ShrinkDemandedConstant() 45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
|
/external/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 55 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in GetOffsetFromIndex() local 56 if (!OpC) in GetOffsetFromIndex() 58 if (OpC->isZero()) continue; // No offset. in GetOffsetFromIndex() 62 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in GetOffsetFromIndex() 69 Offset += Size*OpC->getSExtValue(); in GetOffsetFromIndex()
|
D | SROA.cpp | 704 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in visitGetElementPtrInst() local 705 if (!OpC) in visitGetElementPtrInst() 710 unsigned ElementIdx = OpC->getZExtValue(); in visitGetElementPtrInst() 717 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in visitGetElementPtrInst()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonStoreWidening.cpp | 114 unsigned OpC = MI->getOpcode(); in getStoreOffset() local 117 switch (OpC) { in getStoreOffset()
|
/external/llvm/lib/CodeGen/ |
D | TargetInstrInfo.cpp | 697 MachineOperand &OpC = Root.getOperand(0); in reassociateOps() local 703 unsigned RegC = OpC.getReg(); in reassociateOps()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 350 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { in AddNodeIDOpcode() argument 351 ID.AddInteger(OpC); in AddNodeIDOpcode() 396 static void AddNodeIDNode(FoldingSetNodeID &ID, unsigned short OpC, in AddNodeIDNode() argument 398 AddNodeIDOpcode(ID, OpC); in AddNodeIDNode()
|