| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ShadowStackGCLowering.cpp | 81 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 84 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 261 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() function in ShadowStackGCLowering 269 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP() 276 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() function in ShadowStackGCLowering 281 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP() 330 Instruction *EntryMapPtr = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction() 337 Value *SlotPtr = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction() 355 Instruction *EntryNextPtr = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction() 357 Instruction *NewHeadVal = CreateGEP(Context, AtEntry, ConcreteStackEntryTy, in runOnFunction() [all …]
|
| H A D | PreISelIntrinsicLowering.cpp | 46 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 50 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative()
|
| H A D | SafeStack.cpp | 564 Value *Off = IRB.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 583 Value *Off = IRB.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 618 Value *Off = IRBUser.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 649 IRB.CreateGEP(Int8Ty, BasePointer, ConstantInt::get(Int32Ty, -FrameSize), in moveStaticAllocasToUnsafeStack()
|
| H A D | SjLjEHPrepare.cpp | 121 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
|
| H A D | CodeGenPrepare.cpp | 1243 Builder.CreateGEP(Derived->getSourceElementType(), ActualRelocatedBase, in simplifyRelocatesOffABase() 5459 ResultPtr = Builder.CreateGEP(I8Ty, ResultPtr, ResultIndex, in optimizeMemoryInst() 5471 SunkAddr = Builder.CreateGEP(I8Ty, ResultPtr, ResultIndex, "sunkaddr", in optimizeMemoryInst() 5683 NewAddr = Builder.CreateGEP(SourceTy, Ops[0], ArrayRef(Ops).drop_front()); in optimizeGatherScatterInst() 5688 Builder.CreateGEP(SecondTy, NewAddr, Constant::getNullValue(IndexTy)); in optimizeGatherScatterInst() 5697 Base = Builder.CreateGEP(SourceTy, Base, ArrayRef(Ops).drop_front()); in optimizeGatherScatterInst() 5703 NewAddr = Builder.CreateGEP(SourceTy, Base, Index); in optimizeGatherScatterInst() 5728 NewAddr = Builder.CreateGEP(ScalarTy, V, Constant::getNullValue(IndexTy)); in optimizeGatherScatterInst() 6082 NewBaseBuilder.CreateGEP(I8Ty, NewBaseGEP, BaseIndex, "splitgep"); in splitLargeGEPOffsets() 6094 NewGEP = Builder.CreateGEP(I8Ty, NewBaseGEP, Index); in splitLargeGEPOffsets() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 255 return Address(CreateGEP(Addr.getElementType(), Addr.getPointer(), 263 using CGBuilderBaseTy::CreateGEP; 264 Address CreateGEP(Address Addr, llvm::Value *Index, 271 CreateGEP(Addr.getElementType(), Addr.getPointer(), Index, Name), 288 return Address(CreateGEP(Addr.getElementType(), Addr.getPointer(),
|
| H A D | CGHLSLRuntime.cpp | 103 B.CreateGEP(Buf.LayoutStruct, CBGV, {ZeroIdx, B.getInt32(Offset)}); in replaceBuffer()
|
| H A D | TargetInfo.cpp | 4064 overflow_arg_area = CGF.Builder.CreateGEP(CGF.Int8Ty, overflow_arg_area, in EmitX86_64VAArgFromMemory() 4160 CGF.Builder.CreateGEP(CGF.Int8Ty, RegSaveArea, gp_offset); in EmitVAArg() 4162 CGF.Builder.CreateGEP(CGF.Int8Ty, RegSaveArea, fp_offset); in EmitVAArg() 4181 RegAddr = Address(CGF.Builder.CreateGEP(CGF.Int8Ty, RegSaveArea, gp_offset), in EmitVAArg() 4199 RegAddr = Address(CGF.Builder.CreateGEP(CGF.Int8Ty, RegSaveArea, fp_offset), in EmitVAArg() 4210 Address RegAddrLo = Address(CGF.Builder.CreateGEP(CGF.Int8Ty, RegSaveArea, in EmitVAArg() 7686 llvm::Value *NewOverflowArgArea = CGF.Builder.CreateGEP( in EmitVAArg() 7738 CGF.Builder.CreateGEP(CGF.Int8Ty, RegSaveArea, RegOffset, "raw_reg_addr"), in EmitVAArg() 7766 CGF.Builder.CreateGEP(OverflowArgArea.getElementType(), in EmitVAArg() 8834 CGF.Builder.CreateGEP(CGF.Int8Ty, __overflow_area_pointer, Offset); in EmitVAArgFromMemory() [all …]
|
| H A D | CGExprScalar.cpp | 2674 value = Builder.CreateGEP(elemTy, value, numElts, "vla.inc"); in EmitScalarPrePostIncDec() 2686 value = Builder.CreateGEP(CGF.Int8Ty, value, amt, "incdec.funcptr"); in EmitScalarPrePostIncDec() 2699 value = Builder.CreateGEP(elemTy, value, amt, "incdec.ptr"); in EmitScalarPrePostIncDec() 2811 value = Builder.CreateGEP(CGF.Int8Ty, value, sizeValue, "incdec.objptr"); in EmitScalarPrePostIncDec() 3684 result = CGF.Builder.CreateGEP(CGF.Int8Ty, result, index, "add.ptr"); in emitPointerArithmetic() 3701 pointer = CGF.Builder.CreateGEP(elemTy, pointer, index, "add.ptr"); in emitPointerArithmetic() 3716 result = CGF.Builder.CreateGEP(CGF.Int8Ty, result, index, "add.ptr"); in emitPointerArithmetic() 3722 return CGF.Builder.CreateGEP(elemTy, pointer, index, "add.ptr"); in emitPointerArithmetic()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86PreAMXConfig.cpp | 163 Value *PalettePos = Builder.CreateGEP(I8Ty, I8Ptr, PaletteOffset); in preWriteTileCfg() 170 Value *RowPos = Builder.CreateGEP(I8Ty, I8Ptr, RowOffset, in preWriteTileCfg() 172 Value *ColPos = Builder.CreateGEP(I8Ty, I8Ptr, ColOffset); in preWriteTileCfg()
|
| H A D | X86InterleavedAccess.cpp | 223 Builder.CreateGEP(VecBaseTy, VecBasePtr, Builder.getInt32(i)); in decompose()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | InstrOrderFile.cpp | 129 Value *MapAddr = entryB.CreateGEP(MapTy, BitMap, IdxFlags, ""); in generateCodeSequence() 145 updateB.CreateGEP(BufferTy, OrderFileBuffer, BufferGEPIdx, ""); in generateCodeSequence()
|
| H A D | SanitizerCoverage.cpp | 341 auto GEP = IRB.CreateGEP(Int8Ty, SecStartI8Ptr, in CreateSecStartEnd() 991 auto CounterPtr = IRB.CreateGEP( in InjectCoverageAtBlock() 1001 auto FlagPtr = IRB.CreateGEP( in InjectCoverageAtBlock()
|
| H A D | MemProfiler.cpp | 395 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
|
| /openbsd-src/gnu/llvm/llvm/examples/BrainF/ |
| H A D | BrainF.cpp | 117 ptr_arrmax = builder->CreateGEP( in header() 122 curhead = builder->CreateGEP( in header() 246 curhead = builder->CreateGEP(Int8Ty, curhead, in readloop()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/ |
| H A D | RISCVGatherScatterLowering.cpp | 395 Builder.CreateGEP(SourceTy, Ops[0], ArrayRef(Ops).drop_front()); in determineBaseAndStride() 431 Builder.CreateGEP(SourceTy, Ops[0], ArrayRef(Ops).drop_front()); in determineBaseAndStride()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 891 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Idx, "uglygep"); in lowerToSingleIndexGEPs() 901 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Offset, "uglygep"); in lowerToSingleIndexGEPs() 1137 NewGEP = cast<Instruction>(Builder.CreateGEP( in splitGEP()
|
| H A D | StraightLineStrengthReduce.cpp | 686 Builder.CreateGEP(Builder.getInt8Ty(), Reduced, Bump, "", InBounds); in rewriteCandidateWithBasis() 692 Reduced = Builder.CreateGEP( in rewriteCandidateWithBasis()
|
| H A D | NaryReassociate.cpp | 460 Builder.CreateGEP(GEP->getResultElementType(), Candidate, RHS)); in tryReassociateGEPAtIndex()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | AMDGPUEmitPrintf.cpp | 124 auto PtrNext = Builder.CreateGEP(Builder.getInt8Ty(), PtrPhi, One); in getStrlenWithNull()
|
| H A D | ScalarEvolutionExpander.cpp | 176 auto *GEP = Builder.CreateGEP( in InsertNoopCastOfTo() 579 return Builder.CreateGEP(Builder.getInt8Ty(), CLHS, CRHS); in expandAddToGEP() 616 return Builder.CreateGEP(Builder.getInt8Ty(), V, Idx, "uglygep"); in expandAddToGEP() 645 Value *GEP = Builder.CreateGEP(PTy->getNonOpaquePointerElementType(), in expandAddToGEP() 2440 Add = Builder.CreateGEP(Builder.getInt8Ty(), StartValue, MulV); in generateOverflowCheck() 2442 Sub = Builder.CreateGEP(Builder.getInt8Ty(), StartValue, NegMulV); in generateOverflowCheck()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXGenericToNVVM.cpp | 275 return Builder.CreateGEP(cast<GEPOperator>(C)->getSourceElementType(), in remapConstantExpr()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | ArgumentPromotion.cpp | 131 Ptr = IRB.CreateGEP(OrigElemTy, Ptr, Indices); in createByteGEP() 140 Ptr = IRB.CreateGEP(IRB.getInt8Ty(), Ptr, IRB.getInt(OrigOffset)); in createByteGEP()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 1981 Value *NewTrueC = Builder.CreateGEP(Ty, TrueC, IndexC, "", IsInBounds); in foldSelectGEP() 1982 Value *NewFalseC = Builder.CreateGEP(Ty, FalseC, IndexC, "", IsInBounds); in foldSelectGEP() 2015 Value *NewSrc = Builder.CreateGEP(GEP.getSourceElementType(), in visitGEPOfGEP() 2210 Builder.CreateGEP(SrcEltType, SrcOp, Indices, "", GEP.isInBounds()); in visitGEPOfBitcast() 2263 Value *NGEP = Builder.CreateGEP(SrcEltType, SrcOp, NewIndices, "", in visitGEPOfBitcast() 2565 Builder.CreateGEP(StrippedPtrEltTy, StrippedPtr, Idx, in visitGetElementPtrInst() 2582 Value *NewGEP = Builder.CreateGEP(StrippedPtrEltTy, StrippedPtr, Idx, in visitGetElementPtrInst() 2616 Builder.CreateGEP(StrippedPtrEltTy, StrippedPtr, NewIdx, in visitGetElementPtrInst() 2658 Builder.CreateGEP(StrippedPtrEltTy, StrippedPtr, Off, in visitGetElementPtrInst()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUReplaceLDSUseWithPointer.cpp | 315 Builder.CreateGEP( in getReplacementInst()
|