/external/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 93 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 96 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 116 const_cast<Value*>(getArgOperand(1)))->getZExtValue(); in getOffset() 126 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawVariable() 129 return cast<MetadataAsValue>(getArgOperand(3))->getMetadata(); in getRawExpression() 145 Value *getRawDest() const { return const_cast<Value*>(getArgOperand(0)); } in getRawDest() 149 Value *getLength() const { return const_cast<Value*>(getArgOperand(2)); } in getLength() 154 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst() 162 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst() 200 return getArgOperand(3)->getType(); in getAlignmentType() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 205 Value *Dst = CI->getArgOperand(0); in optimizeStrCat() 206 Value *Src = CI->getArgOperand(1); in optimizeStrCat() 253 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat() 254 Value *Src = CI->getArgOperand(1); in optimizeStrNCat() 258 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCat() 293 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() 297 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() 303 return EmitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr() 338 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() 339 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/lib/IR/ |
D | AutoUpgrade.cpp | 379 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 385 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 401 Value *Arg0 = CI->getArgOperand(0); in UpgradeIntrinsicCall() 402 Value *Arg1 = CI->getArgOperand(1); in UpgradeIntrinsicCall() 459 Builder.CreateCall(VPCOM, {CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 462 Value *Arg0 = CI->getArgOperand(0); in UpgradeIntrinsicCall() 463 Value *Arg1 = CI->getArgOperand(1); in UpgradeIntrinsicCall() 464 Value *Sel = CI->getArgOperand(2); in UpgradeIntrinsicCall() 474 Value *Trunc0 = Builder.CreateTrunc(CI->getArgOperand(0), Type::getInt32Ty(C)); in UpgradeIntrinsicCall() 475 Rep = Builder.CreateCall(CRC32, {Trunc0, CI->getArgOperand(1)}); in UpgradeIntrinsicCall() [all …]
|
D | IntrinsicInst.cpp | 67 if (!getArgOperand(0)) in getAddress() 70 return getValueImpl(getArgOperand(0)); in getAddress() 81 Value *DbgValueInst::getValue() { return getValueImpl(getArgOperand(0)); } in getValue()
|
D | Verifier.cpp | 1665 Assert(Call->getArgOperand(0) == &CI, in VerifyStatepoint() 1668 Assert(Call->getArgOperand(0) == &CI, in VerifyStatepoint() 3508 Assert(isa<ConstantInt>(CS.getArgOperand(1)), in visitIntrinsicCallSite() 3514 Assert(isa<MetadataAsValue>(CS.getArgOperand(0)), in visitIntrinsicCallSite() 3524 ConstantInt *AlignCI = dyn_cast<ConstantInt>(CS.getArgOperand(3)); in visitIntrinsicCallSite() 3531 Assert(isa<ConstantInt>(CS.getArgOperand(4)), in visitIntrinsicCallSite() 3541 dyn_cast<AllocaInst>(CS.getArgOperand(0)->stripPointerCasts()); in visitIntrinsicCallSite() 3543 Assert(isa<Constant>(CS.getArgOperand(1)), in visitIntrinsicCallSite() 3546 Assert(!isa<ConstantPointerNull>(CS.getArgOperand(1)), in visitIntrinsicCallSite() 3557 Assert(isa<Function>(CS.getArgOperand(1)->stripPointerCasts()), in visitIntrinsicCallSite() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 64 unsigned DstAlign = getKnownAlignment(MI->getArgOperand(0), DL, MI, AC, DT); in SimplifyMemTransfer() 65 unsigned SrcAlign = getKnownAlignment(MI->getArgOperand(1), DL, MI, AC, DT); in SimplifyMemTransfer() 76 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer() 91 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer() 93 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer() 105 Value *StrippedDest = MI->getArgOperand(0)->stripPointerCasts(); in SimplifyMemTransfer() 107 if (StrippedDest != MI->getArgOperand(0)) { in SimplifyMemTransfer() 141 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer() 142 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer() 250 auto Arg1 = II.getArgOperand(1); in SimplifyX86immshift() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | R600TextureIntrinsicsReplacer.cpp | 160 Value *Coord = I.getArgOperand(0); in ReplaceTexIntrinsic() 161 Value *ResourceId = I.getArgOperand(1); in ReplaceTexIntrinsic() 162 Value *SamplerId = I.getArgOperand(2); in ReplaceTexIntrinsic() 165 cast<ConstantInt>(I.getArgOperand(3))->getZExtValue(); in ReplaceTexIntrinsic() 184 Value *Coord = I.getArgOperand(0); in ReplaceTXF() 185 Value *ResourceId = I.getArgOperand(4); in ReplaceTXF() 186 Value *SamplerId = I.getArgOperand(5); in ReplaceTXF() 189 cast<ConstantInt>(I.getArgOperand(6))->getZExtValue(); in ReplaceTXF() 194 I.getArgOperand(1), in ReplaceTXF() 195 I.getArgOperand(2), in ReplaceTXF() [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 | GCRootLowering.cpp | 218 new StoreInst(CI->getArgOperand(0), CI->getArgOperand(2), CI); in PerformDefaultLowering() 226 Value *Ld = new LoadInst(CI->getArgOperand(1), "", CI); in PerformDefaultLowering() 237 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in PerformDefaultLowering()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 53 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect() 54 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 105 Value *ArgValue = CI->getArgOperand(0); in handleBranchExpect() 106 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBranchExpect() 150 Value *Exp = CI->getArgOperand(0); in lowerExpectIntrinsic()
|
D | DeadStoreElimination.cpp | 223 return MemoryLocation(II->getArgOperand(0)); in getLocForWrite() 225 uint64_t Len = cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(); in getLocForWrite() 226 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite() 311 return II->getArgOperand(0); in getStoredPointerOperand() 761 if (!AA->isMustAlias(F->getArgOperand(0), DepPointer)) in HandleFree()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3273 Value *PtrOperand = I.getArgOperand(1); in visitMaskedStore() 3275 SDValue Src0 = getValue(I.getArgOperand(0)); in visitMaskedStore() 3276 SDValue Mask = getValue(I.getArgOperand(3)); in visitMaskedStore() 3278 unsigned Alignment = (cast<ConstantInt>(I.getArgOperand(2)))->getZExtValue(); in visitMaskedStore() 3359 const Value *Ptr = I.getArgOperand(1); in visitMaskedScatter() 3360 SDValue Src0 = getValue(I.getArgOperand(0)); in visitMaskedScatter() 3361 SDValue Mask = getValue(I.getArgOperand(3)); in visitMaskedScatter() 3363 unsigned Alignment = (cast<ConstantInt>(I.getArgOperand(2)))->getZExtValue(); in visitMaskedScatter() 3396 Value *PtrOperand = I.getArgOperand(0); in visitMaskedLoad() 3398 SDValue Src0 = getValue(I.getArgOperand(3)); in visitMaskedLoad() [all …]
|
/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 129 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument() 138 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument() 143 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument() 154 Arg, DL.getTypeStoreSize(II->getArgOperand(1)->getType()), AATags); in getForArgument()
|
D | VectorUtils.cpp | 93 !I.getArgOperand(0)->getType()->isFloatingPointTy() || in checkUnaryFloatSignature() 94 I.getType() != I.getArgOperand(0)->getType() || !I.onlyReadsMemory()) in checkUnaryFloatSignature() 112 !I.getArgOperand(0)->getType()->isFloatingPointTy() || in checkBinaryFloatSignature() 113 !I.getArgOperand(1)->getType()->isFloatingPointTy() || in checkBinaryFloatSignature() 114 I.getType() != I.getArgOperand(0)->getType() || in checkBinaryFloatSignature() 115 I.getType() != I.getArgOperand(1)->getType() || !I.onlyReadsMemory()) in checkBinaryFloatSignature()
|
/external/llvm/include/llvm/Analysis/ |
D | ObjCARCAnalysisUtils.h | 82 V = cast<CallInst>(V)->getArgOperand(0); in GetUnderlyingObjCPtr() 108 V = cast<CallInst>(V)->getArgOperand(0); in GetRCIdentityRoot() 125 return GetRCIdentityRoot(cast<CallInst>(Inst)->getArgOperand(0)); in GetArgRCIdentityRoot()
|
/external/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 62 EXPECT_EQ(Start1->getArgOperand(0), Builder.getInt64(-1)); in TEST_F() 63 EXPECT_EQ(Start2->getArgOperand(0), Builder.getInt64(-1)); in TEST_F() 64 EXPECT_EQ(Start3->getArgOperand(0), Builder.getInt64(100)); in TEST_F() 66 EXPECT_EQ(Start1->getArgOperand(1), Var1); in TEST_F() 67 EXPECT_NE(Start2->getArgOperand(1), Var2); in TEST_F() 68 EXPECT_EQ(Start3->getArgOperand(1), Var3); in TEST_F()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 64 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject() 717 if (IsNullOrUndef(CI->getArgOperand(0))) { in OptimizeIndividualCalls() 719 Type *Ty = CI->getArgOperand(0)->getType(); in OptimizeIndividualCalls() 735 if (IsNullOrUndef(CI->getArgOperand(0)) || in OptimizeIndividualCalls() 736 IsNullOrUndef(CI->getArgOperand(1))) { in OptimizeIndividualCalls() 738 Type *Ty = CI->getArgOperand(0)->getType(); in OptimizeIndividualCalls() 765 const Value *Arg = Call->getArgOperand(0); in OptimizeIndividualCalls() 775 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", in OptimizeIndividualCalls() 909 Type *ParamTy = CInst->getArgOperand(0)->getType(); in OptimizeIndividualCalls() 1848 Value *Arg = Call->getArgOperand(0); in OptimizeWeakCalls() [all …]
|
D | ObjCARC.h | 54 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); in EraseInstruction()
|
D | ObjCARCExpand.cpp | 114 Value *Value = cast<CallInst>(Inst)->getArgOperand(0); in runOnFunction()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | MemorySanitizer.cpp | 1866 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemMoveInst() 1867 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemMoveInst() 1868 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemMoveInst() 1880 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemCpyInst() 1881 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemCpyInst() 1882 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemCpyInst() 1891 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemSetInst() 1892 IRB.CreateIntCast(I.getArgOperand(1), IRB.getInt32Ty(), false), in visitMemSetInst() 1893 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemSetInst() 1911 Value* Addr = I.getArgOperand(0); in handleVectorStoreIntrinsic() [all …]
|
D | ThreadSanitizer.cpp | 484 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 485 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 486 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 491 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 492 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 493 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVVMReflect.cpp | 169 const Value *Str = Reflect->getArgOperand(0); in handleFunction() 173 Str = ConvCall->getArgOperand(0); in handleFunction()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyOptimizeReturned.cpp | 59 Value *Arg = CS.getArgOperand(i); in visitCallSite()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 511 if (Inst->getArgOperand(i)->getType() != ST->getElementType(i)) in getOrCreateResultFromMemIntrinsic() 517 Value *L = Inst->getArgOperand(i); in getOrCreateResultFromMemIntrinsic() 543 Info.PtrVal = Inst->getArgOperand(0); in getTgtMemIntrinsic() 552 Info.PtrVal = Inst->getArgOperand(Inst->getNumArgOperands() - 1); in getTgtMemIntrinsic()
|