Home
last modified time | relevance | path

Searched refs:CreateGEP (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm/lib/CodeGen/
DShadowStackGCLowering.cpp55 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B,
58 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B,
345 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() function in ShadowStackGCLowering
353 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
360 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() function in ShadowStackGCLowering
365 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
406 Instruction *EntryMapPtr = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction()
413 Value *SlotPtr = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction()
431 Instruction *EntryNextPtr = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction()
433 Instruction *NewHeadVal = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction()
[all …]
DSjLjEHPrepare.cpp136 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
DCodeGenPrepare.cpp603 Value *Replacement = Builder.CreateGEP( in simplifyRelocatesOffABase()
3362 ResultPtr = Builder.CreateGEP(I8Ty, ResultPtr, ResultIndex, "sunkaddr"); in OptimizeMemoryInst()
3373 SunkAddr = Builder.CreateGEP(I8Ty, ResultPtr, ResultIndex, "sunkaddr"); in OptimizeMemoryInst()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp87 Value *val = loop.CreateLoad(loop.CreateGEP(loop.getInt8Ty(), srcAddr, ind), in convertTransferToLoop()
90 loop.CreateStore(val, loop.CreateGEP(loop.getInt8Ty(), dstAddr, ind), in convertTransferToLoop()
121 loop.CreateStore(val, loop.CreateGEP(val->getType(), dstAddr, ind), false); in convertMemSetToLoop()
DNVPTXGenericToNVVM.cpp345 ? Builder.CreateGEP( in remapConstantExpr()
/external/llvm/examples/BrainF/
DBrainF.cpp109 CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax"); in header()
113 curhead = builder->CreateGEP(ptr_arr, in header()
241 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)), in readloop()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp225 Value *CpyDst = B.CreateGEP(B.getInt8Ty(), Dst, DstLen, "endptr"); in emitStrLenMemCpy()
306 return B.CreateGEP(B.getInt8Ty(), SrcStr, EmitStrLen(SrcStr, B, DL, TLI), "strchr"); in optimizeStrChr()
319 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr"); in optimizeStrChr()
354 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strrchr"); in optimizeStrRChr()
490 B.CreateGEP(B.getInt8Ty(), Dst, ConstantInt::get(DL.getIntPtrType(PT), Len - 1)); in optimizeStpCpy()
600 return B.CreateGEP(B.getInt8Ty(), CI->getArgOperand(0), B.getInt64(I), "strpbrk"); in optimizeStrPBrk()
831 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr"); in optimizeMemChr()
1674 Ptr = B.CreateGEP(B.getInt8Ty(), Ptr, B.getInt32(1), "nul"); in optimizeSPrintFString()
2304 return B.CreateGEP(B.getInt8Ty(), Dst, ConstantInt::get(SizeTTy, Len - 1)); in optimizeStrpCpyChk()
/external/clang/lib/CodeGen/
DTargetInfo.cpp1270 Addr = CGF.Builder.CreateGEP(Addr, Offset); in EmitVAArg()
1286 Builder.CreateGEP(Addr, llvm::ConstantInt::get(CGF.Int32Ty, Offset), in EmitVAArg()
2791 overflow_arg_area = CGF.Builder.CreateGEP(overflow_arg_area, Offset); in EmitVAArgFromMemory()
2815 overflow_arg_area = CGF.Builder.CreateGEP(overflow_arg_area, Offset, in EmitVAArgFromMemory()
2910 llvm::Value *GPAddr = CGF.Builder.CreateGEP(RegAddr, gp_offset); in EmitVAArg()
2911 llvm::Value *FPAddr = CGF.Builder.CreateGEP(RegAddr, fp_offset); in EmitVAArg()
2923 RegAddr = CGF.Builder.CreateGEP(RegAddr, gp_offset); in EmitVAArg()
2938 RegAddr = CGF.Builder.CreateGEP(RegAddr, fp_offset); in EmitVAArg()
2945 llvm::Value *RegAddrLo = CGF.Builder.CreateGEP(RegAddr, fp_offset); in EmitVAArg()
3094 Builder.CreateGEP(Addr, llvm::ConstantInt::get(CGF.Int32Ty, Offset), in EmitVAArg()
[all …]
DCGExprScalar.cpp1742 value = Builder.CreateGEP(value, numElts, "vla.inc"); in EmitScalarPrePostIncDec()
1752 value = Builder.CreateGEP(value, amt, "incdec.funcptr"); in EmitScalarPrePostIncDec()
1761 value = Builder.CreateGEP(value, amt, "incdec.ptr"); in EmitScalarPrePostIncDec()
1838 value = Builder.CreateGEP(value, sizeValue, "incdec.objptr"); in EmitScalarPrePostIncDec()
2465 result = CGF.Builder.CreateGEP(result, index, "add.ptr"); in emitPointerArithmetic()
2481 pointer = CGF.Builder.CreateGEP(pointer, index, "add.ptr"); in emitPointerArithmetic()
2494 result = CGF.Builder.CreateGEP(result, index, "add.ptr"); in emitPointerArithmetic()
2499 return CGF.Builder.CreateGEP(pointer, index, "add.ptr"); in emitPointerArithmetic()
DCGExpr.cpp2486 Address = Builder.CreateGEP(Address, Idx, "arrayidx"); in EmitArraySubscriptExpr()
2502 Address = Builder.CreateGEP(Address, Idx, "arrayidx"); in EmitArraySubscriptExpr()
2526 Address = Builder.CreateGEP(ArrayPtr, Args, "arrayidx"); in EmitArraySubscriptExpr()
2533 Address = Builder.CreateGEP(Base, Idx, "arrayidx"); in EmitArraySubscriptExpr()
DCGStmtOpenMP.cpp84 auto DestEnd = Builder.CreateGEP(DestBegin, NumElements); in EmitOMPAggregateAssign()
/external/llvm/unittests/Linker/
DLinkModulesTest.cpp79 Value *GEP = Builder.CreateGEP(AT, GV, GEPIndices, "switch.gep"); in TEST_F()
/external/llvm/lib/Transforms/Scalar/
DSeparateConstOffsetFromGEP.cpp761 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Idx, "uglygep"); in lowerToSingleIndexGEPs()
769 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Offset, "uglygep"); in lowerToSingleIndexGEPs()
DStraightLineStrengthReduce.cpp622 Reduced = Builder.CreateGEP(Builder.getInt8Ty(), Reduced, Bump); in rewriteCandidateWithBasis()
631 Reduced = Builder.CreateGEP(nullptr, Basis.Ins, Bump); in rewriteCandidateWithBasis()
DScalarizer.cpp453 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices, in visitGetElementPtrInst()
DIndVarSimplify.cpp1590 return Builder.CreateGEP(nullptr, GEPBase, GEPOffset, "lftr.limit"); in genLoopLimit()
/external/llvm/include/llvm/IR/
DIRBuilder.h1019 Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1021 return CreateGEP(nullptr, Ptr, IdxList, Name);
1023 Value *CreateGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
1054 Value *CreateGEP(Value *Ptr, Value *Idx, const Twine &Name = "") {
1055 return CreateGEP(nullptr, Ptr, Idx, Name);
1057 Value *CreateGEP(Type *Ty, Value *Ptr, Value *Idx, const Twine &Name = "") {
/external/llvm/lib/Target/R600/
DAMDGPUPromoteAlloca.cpp336 Value *Offset = Builder.CreateGEP(GVTy, GV, Indices); in visitAlloca()
/external/mesa3d/src/gallium/drivers/radeon/
DR600KernelParameters.cpp351 Value *ParamPtr = Builder.CreateGEP(ParamAddrSpacePtr, in ConstantRead()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1615 : Builder->CreateGEP(nullptr, StrippedPtr, Idx, in visitGetElementPtrInst()
1636 : Builder->CreateGEP(nullptr, StrippedPtr, Idx, GEP.getName()); in visitGetElementPtrInst()
1671 : Builder->CreateGEP(nullptr, StrippedPtr, NewIdx, in visitGetElementPtrInst()
1713 : Builder->CreateGEP(SrcElTy, StrippedPtr, Off, in visitGetElementPtrInst()
1779 : Builder->CreateGEP(nullptr, Operand, NewIndices); in visitGetElementPtrInst()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp689 return B.CreateGEP(nullptr, StartValue, Index); in transform()
1843 Builder.CreateGEP(nullptr, Ptr, Builder.getInt32(Part * VF)); in vectorizeMemoryInstruction()
1851 PartPtr = Builder.CreateGEP(nullptr, Ptr, Builder.getInt32(-Part * VF)); in vectorizeMemoryInstruction()
1852 PartPtr = Builder.CreateGEP(nullptr, PartPtr, Builder.getInt32(1 - VF)); in vectorizeMemoryInstruction()
1876 Builder.CreateGEP(nullptr, Ptr, Builder.getInt32(Part * VF)); in vectorizeMemoryInstruction()
1881 PartPtr = Builder.CreateGEP(nullptr, Ptr, Builder.getInt32(-Part * VF)); in vectorizeMemoryInstruction()
1882 PartPtr = Builder.CreateGEP(nullptr, PartPtr, Builder.getInt32(1 - VF)); in vectorizeMemoryInstruction()
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp409 Value *ByteAddr = B.CreateGEP(Ty, ByteArray, BitOffset); in createBitSetTest()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp528 Value *GEP = Builder.CreateGEP(Builder.getInt8Ty(), V, Idx, "uglygep"); in expandAddToGEP()
564 Value *GEP = Builder.CreateGEP(OriginalElTy, Casted, in expandAddToGEP()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp1078 Value *ShadowAddr1 = IRB.CreateGEP(DFS.ShadowTy, ShadowAddr, in loadShadow()
1130 WideAddr = NextIRB.CreateGEP(Type::getInt64Ty(*DFS.Ctx), WideAddr, in loadShadow()
DGCOVProfiling.cpp916 Value *GEP = Builder.CreateGEP(Type::getInt64PtrTy(*Ctx), Arg, ZExtPred); in insertIndirectCounterIncrement()

12