Home
last modified time | relevance | path

Searched refs:getLLVMContext (Results 1 – 25 of 30) sorted by relevance

12

/external/clang/lib/CodeGen/
DCodeGenTypes.cpp92 return llvm::IntegerType::get(getLLVMContext(), in ConvertTypeForMem()
326 ResultType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
331 ResultType = llvm::Type::getInt1Ty(getLLVMContext()); in ConvertType()
350 ResultType = llvm::IntegerType::get(getLLVMContext(), in ConvertType()
356 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
363 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
370 ResultType = llvm::Type::getInt8PtrTy(getLLVMContext()); in ConvertType()
375 ResultType = llvm::IntegerType::get(getLLVMContext(), 128); in ConvertType()
419 PointeeType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
443 ResultType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
[all …]
DCGBuiltin.cpp93 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomic()
127 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomicPost()
204 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
207 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
964 llvm::IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
993 llvm::IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
1033 llvm::Type *ITy = llvm::IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
1345 LLVMContext &C = CGM.getLLVMContext(); in EmitBuiltinExpr()
1525 IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
1637 ArgValue = llvm::ConstantInt::get(getLLVMContext(), Result); in EmitBuiltinExpr()
[all …]
DCodeGenPGO.cpp66 auto *VoidTy = llvm::Type::getVoidTy(CGM.getLLVMContext()); in getOrInsertRegisterBB()
77 auto *BB = llvm::BasicBlock::Create(CGM.getLLVMContext(), "", RegisterF); in getOrInsertRegisterBB()
84 auto *VoidTy = llvm::Type::getVoidTy(CGM.getLLVMContext()); in getOrInsertRuntimeRegister()
85 auto *VoidPtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in getOrInsertRuntimeRegister()
109 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in buildDataVar()
169 auto *VoidPtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in emitInstrumentationData()
187 auto *VoidTy = llvm::Type::getVoidTy(CGM.getLLVMContext()); in emitInitialization()
197 CGBuilderTy Builder(llvm::BasicBlock::Create(CGM.getLLVMContext(), "", F)); in emitInitialization()
788 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in emitRuntimeHook()
801 CGBuilderTy Builder(llvm::BasicBlock::Create(CGM.getLLVMContext(), "", User)); in emitRuntimeHook()
[all …]
DCGOpenCLRuntime.cpp36 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); in convertOpenCLSpecificType()
DCGExpr.cpp46 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
691 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1058 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1093 llvm::ConstantInt::get(llvm::Type::getInt32Ty(getLLVMContext()), 0), in EmitLoadOfScalar()
1094 llvm::ConstantInt::get(llvm::Type::getInt32Ty(getLLVMContext()), 1), in EmitLoadOfScalar()
1095 llvm::ConstantInt::get(llvm::Type::getInt32Ty(getLLVMContext()), 2) in EmitLoadOfScalar()
1134 Load, llvm::ConstantInt::get(getLLVMContext(), End)); in EmitLoadOfScalar()
1137 Load, llvm::ConstantInt::get(getLLVMContext(), End)); in EmitLoadOfScalar()
1139 Load, llvm::ConstantInt::get(getLLVMContext(), Min)); in EmitLoadOfScalar()
1193 llvm::LLVMContext &VMContext = getLLVMContext(); in EmitStoreOfScalar()
[all …]
DCGCall.cpp965 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
971 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
983 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1055 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
1189 getLLVMContext(), SwapThisWithSRet ? 2 : Index, SRETAttrs)); in ConstructAttributeList()
1208 AttributeSet::get(getLLVMContext(), in ConstructAttributeList()
1224 PAL.push_back(llvm::AttributeSet::get(getLLVMContext(), Index, in ConstructAttributeList()
1252 PAL.push_back(llvm::AttributeSet::get(getLLVMContext(), Index + I, in ConstructAttributeList()
1298 PAL.push_back(llvm::AttributeSet::get(getLLVMContext(), Index, Attrs)); in ConstructAttributeList()
1306 PAL.push_back(llvm::AttributeSet::get(getLLVMContext(), Index, Attrs)); in ConstructAttributeList()
[all …]
DCodeGenModule.cpp657 F->setAttributes(llvm::AttributeSet::get(getLLVMContext(), AttributeList)); in SetLLVMFunctionAttributes()
827 F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), in SetFunctionAttributes()
916 llvm::Value *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
917 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AppendLinkerOptions()
923 llvm::Value *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
924 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDetectMismatch()
930 llvm::Value *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
931 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDependentLib()
953 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
1037 llvm::MDNode::get(getLLVMContext(), in EmitModuleLinkOptions()
[all …]
DCGRecordLayoutBuilder.cpp108 return llvm::Type::getIntNTy(Types.getLLVMContext(), in getIntNType()
114 llvm::Type *Type = llvm::Type::getInt8Ty(Types.getLLVMContext()); in getByteArrayType()
440 llvm::Type::getInt32PtrTy(Types.getLLVMContext()))); in accumulateVPtrs()
656 getLLVMContext(), BaseBuilder.FieldTypes, "", BaseBuilder.Packed); in ComputeRecordLayout()
DCGCUDANV.cpp91 CGF.getLLVMContext(), ArgTypes); in EmitDeviceStubBody()
DCodeGenTypes.h119 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
DCGExprConstant.cpp242 Elements.back() = llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp); in AppendBitField()
262 Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp)); in AppendBitField()
283 Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), in AppendBitField()
511 llvm::ConstantStruct::getTypeForElements(CGM.getLLVMContext(), in Finalize()
567 : CGM(cgm), CGF(cgf), VMContext(cgm.getLLVMContext()) { in ConstExprEmitter()
DMicrosoftCXXABI.cpp315 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType()
338 CGM.getLLVMContext(), FieldTypes, "rtti.BaseClassDescriptor"); in getBaseClassDescriptorType()
347 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
363 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
1396 llvm::ConstantInt::get(llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
1476 llvm::AttributeSet::get(CGF.getLLVMContext(), AttributeList); in EmitVirtualMemPtrThunk()
1839 return llvm::StructType::get(CGM.getLLVMContext(), fields); in ConvertMemberPointerType()
2614 VMContext(CGM.getLLVMContext()), Module(CGM.getModule()), RD(RD), in MSRTTIBuilder()
2864 llvm::ConstantDataArray::getString(CGM.getLLVMContext(), TypeInfoString)}; in getAddrOfRTTIDescriptor()
DCGStmt.cpp1693 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
1751 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
1982 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
2029 llvm::IntegerType::get(getLLVMContext(), (unsigned)ResSize)); in EmitAsmStmt()
2034 llvm::IntegerType::get(getLLVMContext(), (unsigned)TmpSize)); in EmitAsmStmt()
DCGAtomic.cpp747 llvm::IntegerType::get(getLLVMContext(), Size * 8)->getPointerTo(); in EmitAtomicExpr()
866 llvm::IntegerType::get(CGF.getLLVMContext(), AtomicSizeInBits); in emitCastToAtomicIntPointer()
1077 llvm::IntegerType::get(getLLVMContext(), atomics.getValueSizeInBits()); in EmitAtomicStore()
DCGObjCRuntime.cpp140 llvm::Type::getIntNPtrTy(CGF.getLLVMContext(), in EmitValueForIvarAtOffset()
DCodeGenModule.h578 llvm::MDNode::get(getLLVMContext(), in getNoObjCARCExceptionsMetadata()
591 llvm::LLVMContext &getLLVMContext() { return VMContext; } in getLLVMContext() function
DCodeGenFunction.h1004 new llvm::UnreachableInst(getLLVMContext(), UnreachableBlock); in getUnreachableBlock()
1015 llvm::LLVMContext &getLLVMContext() { return CGM.getLLVMContext(); } in getLLVMContext() function
1301 return llvm::BasicBlock::Create(getLLVMContext(), "", parent, before);
1303 return llvm::BasicBlock::Create(getLLVMContext(), name, parent, before);
DCGBlocks.cpp341 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
453 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
550 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
2016 llvm::StructType::create(getLLVMContext(), in BuildByRefType()
DCGDebugInfo.cpp887 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt()); in CreateRecordStaticField()
889 C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat()); in CreateRecordStaticField()
1242 llvm::ConstantInt::get(CGM.getLLVMContext(), TA.getAsIntegral())); in CollectTemplateParams()
2566 Builder.getCurrentDebugLocation().getScope(CGM.getLLVMContext()) == in EmitLocation()
3302 E.Decl.replaceAllUsesWith(CGM.getLLVMContext(), in finalize()
3318 Ty.replaceAllUsesWith(CGM.getLLVMContext(), RepTy); in finalize()
DItaniumCXXABI.cpp877 CGF.getLLVMContext(), llvm::AttributeSet::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
1571 llvm::AttributeSet::get(CGM.getLLVMContext(), in getGuardAcquireFn()
1582 llvm::AttributeSet::get(CGM.getLLVMContext(), in getGuardReleaseFn()
1593 llvm::AttributeSet::get(CGM.getLLVMContext(), in getGuardAbortFn()
DCGExprAgg.cpp1449 llvm::Type::getInt8PtrTy(getLLVMContext(), DPT->getAddressSpace()); in EmitAggregateCopy()
1454 llvm::Type::getInt8PtrTy(getLLVMContext(), SPT->getAddressSpace()); in EmitAggregateCopy()
DCGObjC.cpp853 llvm::Type::getIntNTy(getLLVMContext(), in generateObjCGetterBody()
1129 llvm::Type::getIntNTy(getLLVMContext(), in generateObjCSetterBody()
1987 llvm::Value *string = llvm::MDString::get(getLLVMContext(), assembly); in EmitARCRetainAutoreleasedReturnValue()
1988 metadata->addOperand(llvm::MDNode::get(getLLVMContext(), string)); in EmitARCRetainAutoreleasedReturnValue()
DCGClass.cpp860 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), DPT->getAddressSpace()); in emitMemcpyIR()
865 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), SPT->getAddressSpace()); in emitMemcpyIR()
DTargetInfo.cpp76 return CGT.getLLVMContext(); in getVMContext()
494 return llvm::Type::getX86_MMXTy(CGF.getLLVMContext()); in X86AdjustInlineAsmType()
1143 llvm::AttributeSet::get(CGM.getLLVMContext(), in SetTargetAttributes()
3792 llvm::Type *BP = llvm::Type::getInt8PtrTy(CGF.getLLVMContext()); in EmitDarwinVAArg()
3966 llvm::AttributeSet::get(CGM.getLLVMContext(), in SetTargetAttributes()
DCGObjCMac.cpp69 llvm::AttributeSet::get(CGM.getLLVMContext(), in getMessageSendFn()
595 llvm::AttributeSet::get(CGM.getLLVMContext(), in getSetJmpFn()
1046 CGObjCRuntime(cgm), VMContext(cgm.getLLVMContext()) { } in CGObjCCommonMac()
3606 CGBuilderTy Builder(CGF.getLLVMContext()); in emitHazardsInNewBlocks()
5015 : VMContext(cgm.getLLVMContext()), CGM(cgm), ExternalProtocolPtrTy(nullptr) in ObjCCommonTypesHelper()

12