Home
last modified time | relevance | path

Searched refs:CreateStructGEP (Results 1 – 22 of 22) sorted by relevance

/external/clang/lib/CodeGen/
DCGBlocks.cpp624 llvm::Value *addr = CGF.Builder.CreateStructGEP( in enterBlockScope()
737 isa, Builder.CreateStructGEP(blockTy, blockAddr, 0, "block.isa")); in EmitBlockLiteral()
740 Builder.CreateStructGEP(blockTy, blockAddr, 1, "block.flags")); in EmitBlockLiteral()
743 Builder.CreateStructGEP(blockTy, blockAddr, 2, "block.reserved")); in EmitBlockLiteral()
745 blockFn, Builder.CreateStructGEP(blockTy, blockAddr, 3, "block.invoke")); in EmitBlockLiteral()
746 Builder.CreateStore(descriptor, Builder.CreateStructGEP(blockTy, blockAddr, 4, in EmitBlockLiteral()
754 llvm::Value *addr = Builder.CreateStructGEP( in EmitBlockLiteral()
772 llvm::Value *blockField = Builder.CreateStructGEP( in EmitBlockLiteral()
784 src = Builder.CreateStructGEP(BlockInfo->StructureType, LoadBlockStruct(), in EmitBlockLiteral()
969 llvm::Value *FuncPtr = Builder.CreateStructGEP( in EmitBlockCallExpr()
[all …]
DCGOpenMPRuntime.cpp1148 CGF.Builder.CreateStructGEP(nullptr, LHS, I), in emitCopyprivateCopyFunction()
1153 CGF.Builder.CreateStructGEP(nullptr, RHS, I), in emitCopyprivateCopyFunction()
1219 auto *Elem = CGF.Builder.CreateStructGEP( in emitSingleRegion()
1533 auto *PartidPtr = CGF.Builder.CreateStructGEP(KmpTaskTTy, TaskTypeArgAddr, in emitProxyTaskFunction()
1538 auto *SharedsPtr = CGF.Builder.CreateStructGEP(KmpTaskTTy, TaskTypeArgAddr, in emitProxyTaskFunction()
1609 CGF.Builder.CreateStructGEP(KmpTaskTTy, NewTaskNewTaskTTy, in emitTaskCall()
1618 CGF.Builder.CreateStructGEP(KmpTaskTTy, NewTaskNewTaskTTy, in emitTaskCall()
1678 CGF.Builder.CreateStructGEP(/*Ty=*/nullptr, RHS, I), in emitReductionFunction()
1687 CGF.Builder.CreateStructGEP(/*Ty=*/nullptr, LHS, I), in emitReductionFunction()
1746 auto *Elem = CGF.Builder.CreateStructGEP(/*Ty=*/nullptr, ReductionList, I); in emitReduction()
DCGCleanup.cpp56 CGF.Builder.CreateStructGEP(ComplexTy, addr, 0)); in save()
58 CGF.Builder.CreateStructGEP(ComplexTy, addr, 1)); in save()
87 CGF.Builder.CreateLoad(CGF.Builder.CreateStructGEP(nullptr, Value, 0)); in restore()
89 CGF.Builder.CreateLoad(CGF.Builder.CreateStructGEP(nullptr, Value, 1)); in restore()
DTargetInfo.cpp2777 llvm::Value *overflow_arg_area_p = CGF.Builder.CreateStructGEP( in EmitVAArgFromMemory()
2859 CGF.Builder.CreateStructGEP(nullptr, VAListAddr, 0, "gp_offset_p"); in EmitVAArg()
2867 CGF.Builder.CreateStructGEP(nullptr, VAListAddr, 1, "fp_offset_p"); in EmitVAArg()
2896 CGF.Builder.CreateStructGEP(nullptr, VAListAddr, 3), "reg_save_area"); in EmitVAArg()
2916 CGF.Builder.CreateStore(V, CGF.Builder.CreateStructGEP(ST, Tmp, 0)); in EmitVAArg()
2918 CGF.Builder.CreateStore(V, CGF.Builder.CreateStructGEP(ST, Tmp, 1)); in EmitVAArg()
2955 CGF.Builder.CreateStore(V, CGF.Builder.CreateStructGEP(ST, Tmp, 0)); in EmitVAArg()
2958 CGF.Builder.CreateStore(V, CGF.Builder.CreateStructGEP(ST, Tmp, 1)); in EmitVAArg()
3796 Builder.CreateStructGEP(Ptr->getAllocatedType(), Ptr, 0, ".real"); in EmitVAArg()
3798 Builder.CreateStructGEP(Ptr->getAllocatedType(), Ptr, 1, ".imag"); in EmitVAArg()
[all …]
DCGExprComplex.cpp320 llvm::Value *RealP = Builder.CreateStructGEP(nullptr, SrcPtr, 0, in EmitLoadOfLValue()
327 llvm::Value *ImagP = Builder.CreateStructGEP(nullptr, SrcPtr, 1, in EmitLoadOfLValue()
344 llvm::Value *RealPtr = Builder.CreateStructGEP(nullptr, Ptr, 0, "real"); in EmitStoreOfComplex()
345 llvm::Value *ImagPtr = Builder.CreateStructGEP(nullptr, Ptr, 1, "imag"); in EmitStoreOfComplex()
DCGCall.cpp761 Builder.CreateStructGEP(nullptr, LV.getAddress(), 0, "real"); in ExpandTypeFromArgs()
765 Builder.CreateStructGEP(nullptr, LV.getAddress(), 1, "imag"); in ExpandTypeFromArgs()
1779 Builder.CreateStructGEP(FI.getArgStruct(), ArgStruct, in EmitFunctionProlog()
2277 llvm::Value *SRet = Builder.CreateStructGEP( in EmitFunctionEpilog()
3066 Builder.CreateStructGEP(ArgMemory->getAllocatedType(), ArgMemory, in EmitCall()
3102 Builder.CreateStructGEP(ArgMemory->getAllocatedType(), ArgMemory, in EmitCall()
3109 Builder.CreateStructGEP(ArgMemory->getAllocatedType(), ArgMemory, in EmitCall()
DCGObjCGNU.cpp679 Builder.CreateStructGEP(nullptr, slot.getInstruction(), 4)); in LookupIMP()
696 return Builder.CreateLoad(Builder.CreateStructGEP(nullptr, slot, 4)); in LookupIMPSuper()
1030 CGF.Builder.CreateStructGEP(ClassNameGV->getValueType(), ClassNameGV, 0); in GetClassNamed()
1287 ReceiverClass = Builder.CreateStructGEP(CastTy, ReceiverClass, 1); in GenerateMessageSendSuper()
1296 Builder.CreateStructGEP(ObjCSuperTy, ObjCSuper, 0)); in GenerateMessageSendSuper()
1298 Builder.CreateStructGEP(ObjCSuperTy, ObjCSuper, 1)); in GenerateMessageSendSuper()
DCGObjC.cpp123 Builder.CreateStructGEP(Objects->getAllocatedType(), Objects, i), in EmitObjCCollectionLiteral()
135 Builder.CreateStructGEP(Keys->getAllocatedType(), Keys, i), in EmitObjCCollectionLiteral()
143 Builder.CreateStructGEP(Objects->getAllocatedType(), Objects, i), in EmitObjCCollectionLiteral()
1518 llvm::Value *StateMutationsPtrPtr = Builder.CreateStructGEP( in EmitObjCForCollectionStmt()
1599 llvm::Value *StateItemsPtr = Builder.CreateStructGEP( in EmitObjCForCollectionStmt()
DCGExprAgg.cpp648 CGF.Builder.CreateStructGEP(nullptr, valueDest.getAddr(), 0); in VisitCastExpr()
669 Builder.CreateStructGEP(nullptr, atomicSlot.getAddr(), 0); in VisitCastExpr()
DCGObjCMac.cpp1792 CGF.Builder.CreateStructGEP(ObjCTypes.SuperTy, ObjCSuper, 0)); in GenerateMessageSendSuper()
1805 Target = CGF.Builder.CreateStructGEP(ObjCTypes.ClassTy, Target, 0); in GenerateMessageSendSuper()
1810 CGF.Builder.CreateStructGEP(ObjCTypes.ClassTy, MetaClassPtr, 1); in GenerateMessageSendSuper()
1818 ClassPtr = CGF.Builder.CreateStructGEP(ObjCTypes.ClassTy, ClassPtr, 1); in GenerateMessageSendSuper()
1827 Target, CGF.Builder.CreateStructGEP(ObjCTypes.SuperTy, ObjCSuper, 1)); in GenerateMessageSendSuper()
6570 CGF.Builder.CreateStructGEP(ObjCTypes.MessageRefTy, mref, 0); in EmitVTableMessageSend()
6737 CGF.Builder.CreateStructGEP(ObjCTypes.SuperTy, ObjCSuper, 0)); in GenerateMessageSendSuper()
6752 Target, CGF.Builder.CreateStructGEP(ObjCTypes.SuperTy, ObjCSuper, 1)); in GenerateMessageSendSuper()
DCGAtomic.cpp192 addr = CGF.Builder.CreateStructGEP(nullptr, addr, 0); in projectValue()
1063 addr = CGF.Builder.CreateStructGEP(nullptr, addr, 0); in convertTempToRValue()
DCGExpr.cpp2081 Builder.CreateStructGEP(nullptr, LV.getAddress(), Idx, "idx"), ExprTy); in EmitUnaryOpLValue()
2677 Addr = Builder.CreateStructGEP(nullptr, Addr, Idx, field->getName()); in EmitLValueForField()
2712 addr = Builder.CreateStructGEP(nullptr, addr, idx, field->getName()); in EmitLValueForField()
2791 llvm::Value *V = Builder.CreateStructGEP(nullptr, Base.getAddress(), idx); in EmitLValueForFieldInitialization()
DCGException.cpp1574 llvm::Value *Rec = Builder.CreateStructGEP(PtrsTy, Ptrs, 0); in EmitSEHExceptionCodeSave()
DCGDecl.cpp638 tempLV.setAddress(Builder.CreateStructGEP( in EmitScalarInit()
DCodeGenFunction.cpp700 llvm::Value *Addr = Builder.CreateStructGEP(nullptr, EI, Idx); in StartFunction()
DCodeGenFunction.h1894 return CGF.Builder.CreateStructGEP(F.first, Address, F.second, in getObjectAddress()
DCGExprScalar.cpp1460 V = Builder.CreateStructGEP(NewTy, V, 0, "arraydecay"); in VisitCastExpr()
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp1296 builder.CreateLoad(builder.CreateStructGEP( in createCatchWrappedInvokeFunction()
1339 typeInfoThrown = builder.CreateStructGEP(typeInfoThrown, 0); in createCatchWrappedInvokeFunction()
1342 builder.CreateStructGEP(typeInfoThrown, 0); in createCatchWrappedInvokeFunction()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp1481 auto LabelVAPtr = IRB.CreateStructGEP(LabelVATy, LabelVAAlloca, n); in visitCallSite()
1485 Args.push_back(IRB.CreateStructGEP(LabelVATy, LabelVAAlloca, 0)); in visitCallSite()
/external/llvm/include/llvm/IR/
DIRBuilder.h1157 Value *CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx,
/external/llvm/lib/IR/
DCore.cpp2521 return wrap(unwrap(B)->CreateStructGEP(nullptr, unwrap(Pointer), Idx, Name)); in LLVMBuildStructGEP()
/external/llvm/bindings/go/llvm/
Dir.go1495 func (b Builder) CreateStructGEP(p Value, i int, name string) (v Value) { func