Home
last modified time | relevance | path

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

12

/external/clang/lib/CodeGen/
DCodeGenTypes.cpp91 return llvm::IntegerType::get(getLLVMContext(), in ConvertTypeForMem()
331 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionType()
339 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionType()
359 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionType()
414 ResultType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
419 ResultType = llvm::Type::getInt1Ty(getLLVMContext()); in ConvertType()
438 ResultType = llvm::IntegerType::get(getLLVMContext(), in ConvertType()
445 getTypeForFormat(getLLVMContext(), Context.getFloatTypeSemantics(T), in ConvertType()
453 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
460 ResultType = llvm::Type::getInt8PtrTy(getLLVMContext()); in ConvertType()
[all …]
DSanitizerMetadata.cpp36 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); in reportGlobalToASan()
79 llvm::MDNode::get(CGM.getLLVMContext(), None)); in disableSanitizerForInstruction()
86 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); in getLocationMetadata()
DCGOpenCLRuntime.cpp36 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); in convertOpenCLSpecificType()
74 CGM.getLLVMContext(), "opencl.pipe_t"), PipeAddrSpc); in getPipeType()
DCodeGenModule.cpp559 MetaDataNode = llvm::MDNode::get(getLLVMContext(), MD); in DecorateInstructionWithInvariantGroup()
825 F->setAttributes(llvm::AttributeSet::get(getLLVMContext(), AttributeList)); in SetLLVMFunctionAttributes()
1037 F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), IID)); in SetFunctionAttributes()
1136 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
1137 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AppendLinkerOptions()
1143 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
1144 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDetectMismatch()
1150 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
1151 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDependentLib()
1172 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
[all …]
DCGCall.cpp1491 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1497 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1598 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
1847 getLLVMContext(), llvm::AttributeSet::ReturnIndex, RetAttrs)); in ConstructAttributeList()
1860 getLLVMContext(), IRFunctionArgs.getSRetArgNo() + 1, SRETAttrs)); in ConstructAttributeList()
1868 getLLVMContext(), IRFunctionArgs.getInallocaArgNo() + 1, Attrs)); in ConstructAttributeList()
1883 getLLVMContext(), IRFunctionArgs.getPaddingArgNo(ArgNo) + 1, in ConstructAttributeList()
1980 Attrs.addAttribute(llvm::Attribute::getWithAlignment(getLLVMContext(), in ConstructAttributeList()
1999 PAL.push_back(llvm::AttributeSet::get(getLLVMContext(), in ConstructAttributeList()
2007 AttributeSet::get(getLLVMContext(), in ConstructAttributeList()
[all …]
DCGCUDABuiltin.cpp78 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in EmitCUDADevicePrintfCallExpr()
DCGRecordLayoutBuilder.cpp123 return llvm::Type::getIntNTy(Types.getLLVMContext(), in getIntNType()
129 llvm::Type *Type = llvm::Type::getInt8Ty(Types.getLLVMContext()); in getByteArrayType()
470 llvm::Type::getInt32PtrTy(Types.getLLVMContext()))); in accumulateVPtrs()
699 getLLVMContext(), BaseBuilder.FieldTypes, "", BaseBuilder.Packed); in ComputeRecordLayout()
DCGExpr.cpp52 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
788 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1258 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1326 Load, llvm::ConstantInt::get(getLLVMContext(), End)); in EmitLoadOfScalar()
1329 Load, llvm::ConstantInt::get(getLLVMContext(), End)); in EmitLoadOfScalar()
1331 Load, llvm::ConstantInt::get(getLLVMContext(), Min)); in EmitLoadOfScalar()
2059 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(), in EmitGlobalNamedRegister()
2062 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
2068 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)); in EmitGlobalNamedRegister()
2337 llvm::ConstantDataArray::getString(getLLVMContext(), Buffer) in EmitCheckTypeDescriptor()
[all …]
DCGStmt.cpp1604 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
1721 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
1748 return llvm::ConstantInt::get(getLLVMContext(), Result); in EmitAsmInput()
1792 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2048 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
2091 llvm::MDNode::get(getLLVMContext(), in EmitAsmStmt()
2132 llvm::IntegerType::get(getLLVMContext(), (unsigned)ResSize)); in EmitAsmStmt()
2137 llvm::IntegerType::get(getLLVMContext(), (unsigned)TmpSize)); in EmitAsmStmt()
DMicrosoftCXXABI.cpp449 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType()
472 CGM.getLLVMContext(), FieldTypes, "rtti.BaseClassDescriptor"); in getBaseClassDescriptorType()
481 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
497 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
684 CGM.getLLVMContext(), FieldTypes, "eh.CatchableType"); in getCatchableTypeType()
703 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, CTATypeName); in getCatchableTypeArrayType()
716 ThrowInfoType = llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, in getThrowInfoType()
1848 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2269 llvm::FunctionType::get(llvm::Type::getVoidTy(CGM.getLLVMContext()), in getInitThreadHeaderFn()
2273 llvm::AttributeSet::get(CGM.getLLVMContext(), in getInitThreadHeaderFn()
[all …]
DCGBuiltin.cpp99 llvm::IntegerType::get(CGF.getLLVMContext(), in MakeBinaryAtomicValue()
160 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomicPost()
198 CGF.getLLVMContext(), CGF.getContext().getTypeSize(T)); in MakeAtomicCmpXchgValue()
277 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit()
338 llvm::MDBuilder MDHelper(CGF.getLLVMContext()); in emitRangedBuiltin()
473 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
476 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
1348 llvm::Type *ITy = llvm::IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
1763 llvm::IntegerType::get(CGM.getLLVMContext(), EncompassingInfo.Width); in EmitBuiltinExpr()
1917 IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
[all …]
DCodeGenPGO.cpp743 auto *I8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in emitCounterIncrement()
856 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
880 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
DCodeGenTypes.h180 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
DCGExprConstant.cpp258 Elements.back() = llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp); in AppendBitField()
278 Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp)); in AppendBitField()
299 Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), in AppendBitField()
544 llvm::ConstantStruct::getTypeForElements(CGM.getLLVMContext(), in Finalize()
612 : CGM(cgm), CGF(cgf), VMContext(cgm.getLLVMContext()) { in ConstExprEmitter()
DCGClass.cpp1078 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), DPT->getAddressSpace()); in emitMemcpyIR()
1083 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), SPT->getAddressSpace()); in emitMemcpyIR()
2620 llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitTypeMetadataCodeForVCall()
2722 llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD); in EmitVTablePtrCheck()
2764 CGM.getLLVMContext(), in EmitVTablePtrCheck()
2765 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitVTablePtrCheck()
2791 llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitVTableTypeCheckedLoad()
DSwiftCallingConv.cpp492 llvm::IntegerType::get(CGM.getLLVMContext(), in finish()
517 auto &ctx = CGM.getLLVMContext(); in getCoerceAndExpandTypes()
DCGBlocks.cpp85 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor()
331 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
448 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
556 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
2063 llvm::StructType::create(getLLVMContext(), in getBlockByrefInfo()
DCGObjCRuntime.cpp140 llvm::Type::getIntNTy(CGF.getLLVMContext(), in EmitValueForIvarAtOffset()
DCodeGenModule.h596 NoObjCARCExceptionsMetadata = llvm::MDNode::get(getLLVMContext(), None); in getNoObjCARCExceptionsMetadata()
618 llvm::LLVMContext &getLLVMContext() { return VMContext; } in getLLVMContext() function
DCGCUDANV.cpp85 : CGCUDARuntime(CGM), Context(CGM.getLLVMContext()), in CGNVCUDARuntime()
DCoverageMappingGen.cpp963 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in addFunctionMappingRecord()
1009 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in emit()
DCodeGenFunction.h1226 new llvm::UnreachableInst(getLLVMContext(), UnreachableBlock); in getUnreachableBlock()
1239 llvm::LLVMContext &getLLVMContext() { return CGM.getLLVMContext(); } in getLLVMContext() function
1592 return llvm::BasicBlock::Create(getLLVMContext(), "", parent, before);
1594 return llvm::BasicBlock::Create(getLLVMContext(), name, parent, before);
DCGAtomic.cpp646 llvm::Type *IPtrTy = llvm::IntegerType::get(CGF.getLLVMContext(), in AddDirectArgument()
1145 llvm::IntegerType::get(CGF.getLLVMContext(), AtomicSizeInBits); in emitCastToAtomicIntPointer()
1395 CGF.getLLVMContext(), in convertRValueToInt()
DItaniumCXXABI.cpp1124 CGF.getLLVMContext(), llvm::AttributeSet::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
1867 llvm::AttributeSet::get(CGM.getLLVMContext(), in getGuardAcquireFn()
1878 llvm::AttributeSet::get(CGM.getLLVMContext(), in getGuardReleaseFn()
1889 llvm::AttributeSet::get(CGM.getLLVMContext(), in getGuardAbortFn()
3844 llvm::BasicBlock::Create(CGM.getLLVMContext(), "", fn); in getClangCallTerminateFn()
DCGObjC.cpp901 llvm::Type *bitcastType = llvm::Type::getIntNTy(getLLVMContext(), ivarSize); in generateObjCGetterBody()
917 llvm::Type *newTy = llvm::Type::getIntNTy(getLLVMContext(), retTySize); in generateObjCGetterBody()
1181 llvm::Type::getIntNTy(getLLVMContext(), in generateObjCSetterBody()
2005 auto &ctx = CGF.getLLVMContext(); in emitAutoreleasedReturnValueMarker()

12