/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 603 Value *Op0 = CI.getArgOperand(0); in upgradeIntMinMax() 604 Value *Op1 = CI.getArgOperand(1); in upgradeIntMinMax() 611 Value *Op0 = CI.getArgOperand(0); in upgradeMaskedCompare() 613 Value *Cmp = Builder.CreateICmp(Pred, Op0, CI.getArgOperand(1)); in upgradeMaskedCompare() 615 Value *Mask = CI.getArgOperand(2); in upgradeMaskedCompare() 659 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 664 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 697 Value *Src = CI->getArgOperand(0); in UpgradeIntrinsicCall() 700 Rep = CI->getArgOperand(0); in UpgradeIntrinsicCall() 718 Value *Src = CI->getArgOperand(0); in UpgradeIntrinsicCall() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 112 Value *Dst = CI->getArgOperand(0); in optimizeStrCat() 113 Value *Src = CI->getArgOperand(1); in optimizeStrCat() 151 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat() 152 Value *Src = CI->getArgOperand(1); in optimizeStrNCat() 156 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCat() 185 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() 189 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() 195 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr() 223 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() 224 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr() [all …]
|
D | GlobalStatus.cpp | 148 if (MTI->getArgOperand(0) == V) in analyzeGlobalAux() 150 if (MTI->getArgOperand(1) == V) in analyzeGlobalAux() 153 assert(MSI->getArgOperand(0) == V && "Memset only takes one pointer!"); in analyzeGlobalAux()
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 92 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 95 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 115 const_cast<Value*>(getArgOperand(1)))->getZExtValue(); in getOffset() 125 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawVariable() 128 return cast<MetadataAsValue>(getArgOperand(3))->getMetadata(); in getRawExpression() 143 Value *getRawDest() const { return const_cast<Value*>(getArgOperand(0)); } in getRawDest() 147 Value *getLength() const { return const_cast<Value*>(getArgOperand(2)); } in getLength() 152 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst() 160 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst() 197 return getArgOperand(3)->getType(); in getAlignmentType() [all …]
|
/external/swiftshader/third_party/LLVM/ |
D | OnlyX86.patch | 35 - if (isNoAlias(Location(II->getArgOperand(0), Size, 45 + // if (isNoAlias(Location(II->getArgOperand(0), Size, 53 + // TD ? TD->getTypeStoreSize(II->getArgOperand(1)->getType()) : UnknownSize; 54 + // if (isNoAlias(Location(II->getArgOperand(0), Size, 63 - TD ? TD->getTypeStoreSize(II->getArgOperand(1)->getType()) : UnknownSize; 64 - if (isNoAlias(Location(II->getArgOperand(0), Size, 85 - if (getOrEnforceKnownAlignment(II->getArgOperand(0), 16, TD) >= 16) { 86 - Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), 94 - if (getOrEnforceKnownAlignment(II->getArgOperand(1), 16, TD) >= 16) { 96 - PointerType::getUnqual(II->getArgOperand(0)->getType()); [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 34 unsigned DstAlign = getKnownAlignment(MI->getArgOperand(0), TD); in SimplifyMemTransfer() 35 unsigned SrcAlign = getKnownAlignment(MI->getArgOperand(1), TD); in SimplifyMemTransfer() 47 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer() 62 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer() 64 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer() 76 Value *StrippedDest = MI->getArgOperand(0)->stripPointerCasts(); in SimplifyMemTransfer() 77 if (StrippedDest != MI->getArgOperand(0)) { in SimplifyMemTransfer() 111 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer() 112 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer() 219 Type *Tys[3] = { CI.getArgOperand(0)->getType(), in visitCallInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | SimplifyLibCalls.cpp | 145 Value *Dst = CI->getArgOperand(0); in CallOptimizer() 146 Value *Src = CI->getArgOperand(1); in CallOptimizer() 196 Value *Dst = CI->getArgOperand(0); in CallOptimizer() 197 Value *Src = CI->getArgOperand(1); in CallOptimizer() 201 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in CallOptimizer() 242 Value *SrcStr = CI->getArgOperand(0); in CallOptimizer() 246 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in CallOptimizer() 255 return EmitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in CallOptimizer() 292 Value *SrcStr = CI->getArgOperand(0); in CallOptimizer() 293 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in CallOptimizer() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 82 unsigned DstAlign = getKnownAlignment(MI->getArgOperand(0), DL, MI, AC, DT); in SimplifyMemTransfer() 83 unsigned SrcAlign = getKnownAlignment(MI->getArgOperand(1), DL, MI, AC, DT); in SimplifyMemTransfer() 94 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer() 109 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer() 111 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer() 123 Value *StrippedDest = MI->getArgOperand(0)->stripPointerCasts(); in SimplifyMemTransfer() 125 if (StrippedDest != MI->getArgOperand(0)) { in SimplifyMemTransfer() 159 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer() 160 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer() 268 auto Arg1 = II.getArgOperand(1); in simplifyX86immShift() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | AutoUpgrade.cpp | 188 Value *BC = Builder.CreateBitCast(CI->getArgOperand(0), in UpgradeIntrinsicCall() 213 Value *Arg0 = CI->getArgOperand(0); in UpgradeIntrinsicCall() 214 Value *Arg1 = CI->getArgOperand(1); in UpgradeIntrinsicCall() 229 Value *Val = Builder.CreateAtomicCmpXchg(CI->getArgOperand(0), in UpgradeIntrinsicCall() 230 CI->getArgOperand(1), in UpgradeIntrinsicCall() 231 CI->getArgOperand(2), in UpgradeIntrinsicCall() 269 Value *Val = Builder.CreateAtomicRMW(Op, CI->getArgOperand(0), in UpgradeIntrinsicCall() 270 CI->getArgOperand(1), in UpgradeIntrinsicCall() 289 if (cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue()) in UpgradeIntrinsicCall() 291 else if (!cast<ConstantInt>(CI->getArgOperand(0))->getZExtValue()) in UpgradeIntrinsicCall() [all …]
|
D | IntrinsicInst.cpp | 57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0))) in getAddress() 68 return cast<MDNode>(getArgOperand(0))->getOperand(0); in getValue() 72 return cast<MDNode>(getArgOperand(0))->getOperand(0); in getValue()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | IntrinsicInst.h | 86 MDNode *getVariable() const { return cast<MDNode>(getArgOperand(1)); } in getVariable() 106 const_cast<Value*>(getArgOperand(1)))->getZExtValue(); in getOffset() 108 MDNode *getVariable() const { return cast<MDNode>(getArgOperand(2)); } in getVariable() 124 Value *getRawDest() const { return const_cast<Value*>(getArgOperand(0)); } in getRawDest() 126 Value *getLength() const { return const_cast<Value*>(getArgOperand(2)); } in getLength() 128 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst() 136 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst() 174 return getArgOperand(3)->getType(); in getAlignmentType() 199 Value *getValue() const { return const_cast<Value*>(getArgOperand(1)); } in getValue() 223 Value *getRawSource() const { return const_cast<Value*>(getArgOperand(1)); } in getRawSource()
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | IRBuilderTest.cpp | 52 EXPECT_EQ(Start1->getArgOperand(0), Builder.getInt64(-1)); in TEST_F() 53 EXPECT_EQ(Start2->getArgOperand(0), Builder.getInt64(-1)); in TEST_F() 54 EXPECT_EQ(Start3->getArgOperand(0), Builder.getInt64(100)); in TEST_F() 56 EXPECT_EQ(Start1->getArgOperand(1), Var1); in TEST_F() 57 EXPECT_NE(Start2->getArgOperand(1), Var2); in TEST_F() 58 EXPECT_EQ(Start3->getArgOperand(1), Var3); in TEST_F()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 321 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 335 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall() 358 Value *V = CI->getArgOperand(0); in LowerIntrinsicCall() 392 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 396 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 400 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 405 Value *Src = CI->getArgOperand(0); in LowerIntrinsicCall() 466 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 469 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 470 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 321 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 335 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall() 358 Value *V = CI->getArgOperand(0); in LowerIntrinsicCall() 392 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 396 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 400 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 405 Value *Src = CI->getArgOperand(0); in LowerIntrinsicCall() 475 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 478 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 479 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() [all …]
|
D | PreISelIntrinsicLowering.cpp | 44 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 48 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative()
|
D | GCRootLowering.cpp | 217 new StoreInst(CI->getArgOperand(0), CI->getArgOperand(2), CI); in PerformDefaultLowering() 225 Value *Ld = new LoadInst(CI->getArgOperand(1), "", CI); in PerformDefaultLowering() 236 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in PerformDefaultLowering()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 378 B.CreateMemCpy(CI->getArgOperand(0), CI->getArgOperand(1), in fold() 379 CI->getArgOperand(2), 1); in fold() 380 replaceCall(CI->getArgOperand(0)); in fold() 401 B.CreateMemMove(CI->getArgOperand(0), CI->getArgOperand(1), in fold() 402 CI->getArgOperand(2), 1); in fold() 403 replaceCall(CI->getArgOperand(0)); in fold() 419 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), in fold() 421 B.CreateMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), 1); in fold() 422 replaceCall(CI->getArgOperand(0)); in fold() 444 Value *Ret = EmitStrCpy(CI->getArgOperand(0), CI->getArgOperand(1), B, TD, in fold() [all …]
|
D | LowerExpectIntrinsic.cpp | 55 Value *ArgValue = CI->getArgOperand(0); in HandleSwitchExpect() 56 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in HandleSwitchExpect() 102 Value *ArgValue = CI->getArgOperand(0); in HandleIfExpect() 103 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in HandleIfExpect() 149 Value *Exp = CI->getArgOperand(0); in runOnFunction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 65 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect() 66 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 117 Value *ArgValue = CI->getArgOperand(0); in handleBranchExpect() 118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBranchExpect() 162 Value *Exp = CI->getArgOperand(0); in lowerExpectIntrinsic()
|
D | GuardWidening.cpp | 201 widenCondCommon(ToWiden->getArgOperand(0), NewCondition, ToWiden, Result); in widenGuard() 313 DEBUG(dbgs() << "Score between " << *GuardInst->getArgOperand(0) in eliminateGuardViaWidening() 314 << " and " << *Candidate->getArgOperand(0) << " is " in eliminateGuardViaWidening() 333 widenGuard(BestSoFar, GuardInst->getArgOperand(0)); in eliminateGuardViaWidening() 353 if (!isAvailableAt(DominatedGuard->getArgOperand(0), DominatingGuard)) in computeWideningScore() 359 if (isWideningCondProfitable(DominatedGuard->getArgOperand(0), in computeWideningScore() 360 DominatingGuard->getArgOperand(0))) in computeWideningScore()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3503 SDValue Op = getValue(I.getArgOperand(i)); in visitTargetIntrinsic() 3603 SDValue Op1 = getValue(I.getArgOperand(0)); in implVisitAluOverflow() 3604 SDValue Op2 = getValue(I.getArgOperand(1)); in implVisitAluOverflow() 3618 if (getValue(I.getArgOperand(0)).getValueType() == MVT::f32 && in visitExp() 3620 SDValue Op = getValue(I.getArgOperand(0)); in visitExp() 3730 getValue(I.getArgOperand(0)).getValueType(), in visitExp() 3731 getValue(I.getArgOperand(0))); in visitExp() 3744 if (getValue(I.getArgOperand(0)).getValueType() == MVT::f32 && in visitLog() 3746 SDValue Op = getValue(I.getArgOperand(0)); in visitLog() 3840 getValue(I.getArgOperand(0)).getValueType(), in visitLog() [all …]
|
/external/spirv-llvm/lib/SPIRV/ |
D | SPIRVLowerOCLBlocks.cpp | 222 assert(CI->getArgOperand(0) == CallBlkBind); in lowerBlockBind() 225 assert(CI->getArgOperand(0) == CallBlkBind); in lowerBlockBind() 245 getBlockInvokeFuncAndContext(CallGetBlkCtx->getArgOperand(0), nullptr, in lowerGetBlockContext() 270 getBlockInvokeFuncAndContext(CallGetBlkInvoke->getArgOperand(0), in lowerGetBlockInvoke() 363 CallBlkBind->getArgOperand(0)->stripPointerCasts()); in getBlockInvokeFuncAndContext() 364 CtxLen = CallBlkBind->getArgOperand(1); in getBlockInvokeFuncAndContext() 365 CtxAlign = CallBlkBind->getArgOperand(2); in getBlockInvokeFuncAndContext() 366 Ctx = CallBlkBind->getArgOperand(3); in getBlockInvokeFuncAndContext()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3696 Value *PtrOperand = I.getArgOperand(1); in visitMaskedStore() 3698 SDValue Src0 = getValue(I.getArgOperand(0)); in visitMaskedStore() 3699 SDValue Mask = getValue(I.getArgOperand(3)); in visitMaskedStore() 3701 unsigned Alignment = (cast<ConstantInt>(I.getArgOperand(2)))->getZExtValue(); in visitMaskedStore() 3782 const Value *Ptr = I.getArgOperand(1); in visitMaskedScatter() 3783 SDValue Src0 = getValue(I.getArgOperand(0)); in visitMaskedScatter() 3784 SDValue Mask = getValue(I.getArgOperand(3)); in visitMaskedScatter() 3786 unsigned Alignment = (cast<ConstantInt>(I.getArgOperand(2)))->getZExtValue(); in visitMaskedScatter() 3819 Value *PtrOperand = I.getArgOperand(0); in visitMaskedLoad() 3821 SDValue Src0 = getValue(I.getArgOperand(3)); in visitMaskedLoad() [all …]
|
/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 112 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument() 121 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument() 126 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument() 137 Arg, DL.getTypeStoreSize(II->getArgOperand(1)->getType()), AATags); in getForArgument()
|
/external/llvm/include/llvm/Analysis/ |
D | ObjCARCAnalysisUtils.h | 83 V = cast<CallInst>(V)->getArgOperand(0); in GetUnderlyingObjCPtr() 109 V = cast<CallInst>(V)->getArgOperand(0); in GetRCIdentityRoot() 126 return GetRCIdentityRoot(cast<CallInst>(Inst)->getArgOperand(0)); in GetArgRCIdentityRoot()
|