Home
last modified time | relevance | path

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

1234

/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()
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 …]
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 …]
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()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenTypes.cpp104 return llvm::IntegerType::get(getLLVMContext(), in ConvertTypeForMem()
347 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
355 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
375 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
444 ResultType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
449 ResultType = llvm::Type::getInt1Ty(getLLVMContext()); in ConvertType()
493 ResultType = llvm::IntegerType::get(getLLVMContext(), in ConvertType()
499 getTypeForFormat(getLLVMContext(), Context.getFloatTypeSemantics(T), in ConvertType()
506 getLLVMContext(), Context.getFloatTypeSemantics(T), in ConvertType()
515 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
[all …]
DCGOpenCLRuntime.cpp37 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); in convertOpenCLSpecificType()
83 CGM.getLLVMContext(), Name), in getPipeType()
92 CGM.getLLVMContext(), "opencl.sampler_t"), in getSamplerType()
101 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize()
111 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemAlign()
121 CGM.getLLVMContext(), in getGenericVoidPointerType()
DSanitizerMetadata.cpp42 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); in reportGlobalToASan()
89 llvm::MDNode::get(CGM.getLLVMContext(), None)); in disableSanitizerForInstruction()
96 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); in getLocationMetadata()
DCGExprConstant.cpp219 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
248 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
263 ToUpdate = llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar); in addBits()
493 CGM.getLLVMContext(), Packed ? PackedElems : UnpackedElems, Packed); in buildFrom()
985 llvm::StructType::get(CGM.getLLVMContext(), Types, true); in EmitArrayConstant()
1002 : CGM(emitter.CGM), Emitter(emitter), VMContext(CGM.getLLVMContext()) { in ConstExprEmitter()
2043 return llvm::ConstantInt::get(CGM.getLLVMContext(), Value.getInt()); in tryEmitPrivate()
2045 return llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2050 Complex[0] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2052 Complex[1] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
[all …]
DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
DCGStmt.cpp1903 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
1923 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in EmitSwitchStmt()
2035 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
2067 return llvm::ConstantInt::get(getLLVMContext(), IntResult); in EmitAsmInput()
2072 return llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt()); in EmitAsmInput()
2114 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2148 llvm::MDNode::get(CGF.getLLVMContext(), in UpdateAsmCallInst()
2266 llvm::Type *ConvTy = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmStmt()
2508 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
2556 llvm::IntegerType::get(getLLVMContext(), (unsigned)ResSize)); in EmitAsmStmt()
[all …]
DCGGPUBuiltin.cpp77 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in EmitNVPTXDevicePrintfCallExpr()
DCGRecordLayoutBuilder.cpp130 return llvm::Type::getIntNTy(Types.getLLVMContext(), in getIntNType()
136 llvm::Type *Type = llvm::Type::getInt8Ty(Types.getLLVMContext()); in getByteArrayType()
650 llvm::Type::getInt32PtrTy(Types.getLLVMContext()))); in accumulateVPtrs()
886 getLLVMContext(), BaseBuilder.FieldTypes, "", BaseBuilder.Packed); in ComputeRecordLayout()
DCGExpr.cpp57 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
705 llvm::Value *True = llvm::ConstantInt::getTrue(getLLVMContext()); in EmitTypeCheck()
1037 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1657 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1686 auto &Ctx = getLLVMContext(); in EmitScalarRangeCheck()
2609 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(), in EmitGlobalNamedRegister()
2612 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
2618 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)); in EmitGlobalNamedRegister()
3002 llvm::ConstantDataArray::getString(getLLVMContext(), Buffer) in EmitCheckTypeDescriptor()
3029 V = Builder.CreateBitCast(V, llvm::Type::getIntNTy(getLLVMContext(), in EmitCheckValue()
[all …]
DMicrosoftCXXABI.cpp466 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType()
489 CGM.getLLVMContext(), FieldTypes, "rtti.BaseClassDescriptor"); in getBaseClassDescriptorType()
498 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
514 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
705 CGM.getLLVMContext(), FieldTypes, "eh.CatchableType"); in getCatchableTypeType()
724 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, CTATypeName); in getCatchableTypeArrayType()
737 ThrowInfoType = llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, in getThrowInfoType()
1970 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2412 llvm::FunctionType::get(llvm::Type::getVoidTy(CGM.getLLVMContext()), in getInitThreadHeaderFn()
2416 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadHeaderFn()
[all …]
DCGCall.cpp1589 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1595 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1702 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
2148 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2156 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2186 ArgAttrs[IRArgs.first] = llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2202 getLLVMContext(), in ConstructAttributeList()
2341 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2347 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
2348 llvm::AttributeSet::get(getLLVMContext(), RetAttrs), ArgAttrs); in ConstructAttributeList()
[all …]
DCodeGenTypes.h120 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
DCodeGenModule.cpp863 llvm::MDNode::get(getLLVMContext(), {})); in DecorateInstructionWithInvariantGroup()
1979 F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), IID)); in SetFunctionAttributes()
2113 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
2114 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AppendLinkerOptions()
2122 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
2123 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDetectMismatch()
2127 auto &C = getLLVMContext(); in AddDependentLib()
2136 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
2158 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
2370 llvm::Constant *s = llvm::ConstantDataArray::getString(getLLVMContext(), Str); in EmitAnnotationString()
[all …]

1234