/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/Utils/ |
D | Local.h | 49 if (Constant *OpC = dyn_cast<Constant>(Op)) { variable 50 if (OpC->isZeroValue()) 55 if (OpC->getType()->isVectorTy()) 56 OpC = OpC->getSplatValue(); 58 uint64_t OpValue = cast<ConstantInt>(OpC)->getZExtValue(); 68 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Operator.cpp | 43 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateConstantOffset() local 44 if (!OpC) in accumulateConstantOffset() 46 if (OpC->isZero()) in accumulateConstantOffset() 51 unsigned ElementIdx = OpC->getZExtValue(); in accumulateConstantOffset() 58 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
|
/external/llvm/lib/IR/ |
D | Operator.cpp | 29 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateConstantOffset() local 30 if (!OpC) in accumulateConstantOffset() 32 if (OpC->isZero()) in accumulateConstantOffset() 37 unsigned ElementIdx = OpC->getZExtValue(); in accumulateConstantOffset() 44 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAnnotateKernelFeatures.cpp | 102 const auto *OpC = dyn_cast<Constant>(U); in visitConstantExprsRecursively() local 103 if (!OpC) in visitConstantExprsRecursively() 106 if (!ConstantExprVisited.insert(OpC).second) in visitConstantExprsRecursively() 109 Stack.push_back(OpC); in visitConstantExprsRecursively() 128 const auto *OpC = dyn_cast<Constant>(U); in hasAddrSpaceCast() local 129 if (!OpC) in hasAddrSpaceCast() 132 if (visitConstantExprsRecursively(OpC, ConstantExprVisited)) in hasAddrSpaceCast()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 747 unsigned OpC = MI.getOpcode(); in usesIXAddr() local 749 switch (OpC) { in usesIXAddr() 803 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local 805 if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) { in eliminateFrameIndex() 812 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 818 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex() 821 } else if (OpC == PPC::RESTORE_CR) { in eliminateFrameIndex() 824 } else if (OpC == PPC::SPILL_CRBIT) { in eliminateFrameIndex() 827 } else if (OpC == PPC::RESTORE_CRBIT) { in eliminateFrameIndex() 830 } else if (OpC == PPC::SPILL_VRSAVE) { in eliminateFrameIndex() [all …]
|
D | PPCInstrInfo.cpp | 1328 unsigned OpC = MI.getOpcode(); in PredicateInstruction() local 1329 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction() 1350 } else if (OpC == PPC::B) { in PredicateInstruction() 1383 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || in PredicateInstruction() 1384 OpC == PPC::BCTRL || OpC == PPC::BCTRL8) { in PredicateInstruction() 1388 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8; in PredicateInstruction() 1484 unsigned OpC = MI.getOpcode(); in isPredicable() local 1485 switch (OpC) { in isPredicable() 1533 int OpC = CmpInstr.getOpcode(); in optimizeCompareInstr() local 1538 if (OpC == PPC::FCMPUS || OpC == PPC::FCMPUD) in optimizeCompareInstr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAnnotateKernelFeatures.cpp | 129 const auto *OpC = dyn_cast<Constant>(U); in visitConstantExprsRecursively() local 130 if (!OpC) in visitConstantExprsRecursively() 133 if (!ConstantExprVisited.insert(OpC).second) in visitConstantExprsRecursively() 136 Stack.push_back(OpC); in visitConstantExprsRecursively() 272 const auto *OpC = dyn_cast<Constant>(U); in addFeatureAttributes() local 273 if (!OpC) in addFeatureAttributes() 276 if (visitConstantExprsRecursively(OpC, ConstantExprVisited, AS)) { in addFeatureAttributes()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 207 if (Constant *OpC = dyn_cast<Constant>(Op)) { variable 208 if (OpC->isZeroValue()) 213 if (OpC->getType()->isVectorTy()) 214 OpC = OpC->getSplatValue(); 216 uint64_t OpValue = cast<ConstantInt>(OpC)->getZExtValue(); 226 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 827 unsigned OpC = MI.getOpcode(); in offsetMinAlign() local 829 switch (OpC) { in offsetMinAlign() 896 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local 898 if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) { in eliminateFrameIndex() 905 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 911 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex() 914 } else if (OpC == PPC::RESTORE_CR) { in eliminateFrameIndex() 917 } else if (OpC == PPC::SPILL_CRBIT) { in eliminateFrameIndex() 920 } else if (OpC == PPC::RESTORE_CRBIT) { in eliminateFrameIndex() 923 } else if (OpC == PPC::SPILL_VRSAVE) { in eliminateFrameIndex() [all …]
|
D | PPCInstrInfo.cpp | 1424 unsigned OpC = MI.getOpcode(); in PredicateInstruction() local 1425 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction() 1446 } else if (OpC == PPC::B) { in PredicateInstruction() 1479 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || in PredicateInstruction() 1480 OpC == PPC::BCTRL || OpC == PPC::BCTRL8) { in PredicateInstruction() 1484 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8; in PredicateInstruction() 1580 unsigned OpC = MI.getOpcode(); in isPredicable() local 1581 switch (OpC) { in isPredicable() 1631 int OpC = CmpInstr.getOpcode(); in optimizeCompareInstr() local 1636 if (OpC == PPC::FCMPUS || OpC == PPC::FCMPUD) in optimizeCompareInstr() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Operator.h | 147 static bool isPossiblyExactOpcode(unsigned OpC) { in isPossiblyExactOpcode() argument 148 return OpC == Instruction::SDiv || in isPossiblyExactOpcode() 149 OpC == Instruction::UDiv || in isPossiblyExactOpcode() 150 OpC == Instruction::AShr || in isPossiblyExactOpcode() 151 OpC == Instruction::LShr; in isPossiblyExactOpcode()
|
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Operator.h | 140 static bool isPossiblyExactOpcode(unsigned OpC) { in isPossiblyExactOpcode() argument 141 return OpC == Instruction::SDiv || in isPossiblyExactOpcode() 142 OpC == Instruction::UDiv || in isPossiblyExactOpcode() 143 OpC == Instruction::AShr || in isPossiblyExactOpcode() 144 OpC == Instruction::LShr; in isPossiblyExactOpcode()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 1020 auto *OpC = dyn_cast<CallInst>(Op1); in optimizePow() local 1021 if (OpC && OpC->hasUnsafeAlgebra() && CI->hasUnsafeAlgebra()) { in optimizePow() 1023 Function *OpCCallee = OpC->getCalledFunction(); in optimizePow() 1028 Value *FMul = B.CreateFMul(OpC->getArgOperand(0), Op2, "mul"); in optimizePow() 1124 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) { in optimizeExp2() local 1125 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32) in optimizeExp2() 1126 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty()); in optimizeExp2() 1127 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) { in optimizeExp2() local 1128 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32) in optimizeExp2() 1129 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty()); in optimizeExp2() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 529 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local 533 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 540 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex() 554 switch (OpC) { in eliminateFrameIndex() 615 if (OpC != TargetOpcode::INLINEASM) { in eliminateFrameIndex() 616 assert(ImmToIdxMap.count(OpC) && in eliminateFrameIndex() 618 unsigned NewOpcode = ImmToIdxMap.find(OpC)->second; in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 1311 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) { in optimizeExp2() local 1312 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32) in optimizeExp2() 1313 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty()); in optimizeExp2() 1314 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) { in optimizeExp2() local 1315 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32) in optimizeExp2() 1316 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty()); in optimizeExp2() 1385 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeLog() local 1388 if (!OpC || !OpC->isFast()) in optimizeLog() 1402 Function *F = OpC->getCalledFunction(); in optimizeLog() 1405 return B.CreateFMul(OpC->getArgOperand(1), in optimizeLog() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | GlobalDCE.cpp | 197 if (Constant *OpC = dyn_cast<Constant>(*I)) in MarkUsedGlobalsAsNeeded() local 198 MarkUsedGlobalsAsNeeded(OpC); in MarkUsedGlobalsAsNeeded()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 1248 unsigned OpC = in ConstantFoldCompareInstOperands() local 1250 return ConstantFoldBinaryOpOperands(OpC, LHS, RHS, DL); in ConstantFoldCompareInstOperands() 2127 if (ConstantFP *OpC = dyn_cast<ConstantFP>(CS.getArgOperand(0))) { in isMathLibCallNoop() local 2128 const APFloat &Op = OpC->getValueAPF(); in isMathLibCallNoop() 2145 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() 2148 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop() 2157 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() 2160 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop() 2178 Type *Ty = OpC->getType(); in isMathLibCallNoop() 2180 double OpV = getValueAsDouble(OpC); in isMathLibCallNoop() [all …]
|
D | InlineCost.cpp | 382 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local 383 if (!OpC) in accumulateGEPOffset() 385 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset() 386 if (!OpC) in accumulateGEPOffset() 388 if (OpC->isZero()) in accumulateGEPOffset() 393 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 400 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
/external/swiftshader/third_party/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()
|
/external/swiftshader/third_party/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 | 419 if (ConstantInt *OpC = dyn_cast<ConstantInt>(Op)) { in EmitGEPOffset() local 420 if (OpC->isZero()) continue; in EmitGEPOffset() 424 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in EmitGEPOffset() 434 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); in EmitGEPOffset()
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 313 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local 314 if (!OpC) in accumulateGEPOffset() 316 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset() 317 if (!OpC) in accumulateGEPOffset() 319 if (OpC->isZero()) in accumulateGEPOffset() 324 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 331 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 34 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant() local 35 if (!OpC) return false; in ShrinkDemandedConstant() 38 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth()); in ShrinkDemandedConstant() 39 if ((~Demanded & OpC->getValue()) == 0) in ShrinkDemandedConstant() 43 Demanded &= OpC->getValue(); in ShrinkDemandedConstant() 44 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 84 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in GetOffsetFromIndex() local 85 if (!OpC) in GetOffsetFromIndex() 87 if (OpC->isZero()) continue; // No offset. in GetOffsetFromIndex() 91 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in GetOffsetFromIndex() 98 Offset += Size*OpC->getSExtValue(); in GetOffsetFromIndex()
|