Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A 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()
515 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
685 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
719 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
741 ResultType = llvm::Type::getInt32Ty(getLLVMContext()); in ConvertType()
779 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
[all …]
H A 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()
H A 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()
H A DCGExprConstant.cpp219 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
248 add(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()
2046 return llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2051 Complex[0] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2053 Complex[1] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2066 return llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2069 return llvm::ConstantFP::get(CGM.getLLVMContext(), Init); in tryEmitPrivate()
2074 Complex[0] = llvm::ConstantFP::get(CGM.getLLVMContext(), in tryEmitPrivate()
[all …]
H A DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
H A DCGStmt.cpp1969 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
1989 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in EmitSwitchStmt()
2102 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
2134 return llvm::ConstantInt::get(getLLVMContext(), IntResult); in EmitAsmInput()
2139 return llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt()); in EmitAsmInput()
2181 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2217 llvm::MDNode::get(CGF.getLLVMContext(), in UpdateAsmCallInst()
2343 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmStmt()
2607 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
2660 llvm::IntegerType::get(getLLVMContext(), (unsigned)ResSize)); in EmitAsmStmt()
[all …]
H A DCGRecordLayoutBuilder.cpp131 return llvm::Type::getIntNTy(Types.getLLVMContext(), AlignedBits); in getIntNType()
135 return llvm::Type::getIntNTy(Types.getLLVMContext(), in getCharType()
655 llvm::Type::getInt32PtrTy(Types.getLLVMContext()))); in accumulateVPtrs()
891 getLLVMContext(), BaseBuilder.FieldTypes, "", BaseBuilder.Packed); in ComputeRecordLayout()
H A DCGGPUBuiltin.cpp77 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in EmitNVPTXDevicePrintfCallExpr()
H A DCGExpr.cpp59 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
1037 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1657 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1686 auto &Ctx = getLLVMContext(); in EmitScalarRangeCheck()
2608 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
3011 llvm::ConstantDataArray::getString(getLLVMContext(), Buffer) in EmitCheckTypeDescriptor()
3187 llvm::AttributeList::get(CGF.getLLVMContext(), in emitCheckHandlerCall()
3251 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitCheck()
3317 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitCfiSlowPathCheck()
3435 CGM.getLLVMContext(), in EmitCfiCheckFail()
[all …]
H A DMicrosoftCXXABI.cpp494 CGM.getLLVMContext(), FieldTypes, "rtti.BaseClassDescriptor"); in getBaseClassDescriptorType()
503 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
519 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
710 CGM.getLLVMContext(), FieldTypes, "eh.CatchableType"); in getCatchableTypeType()
1981 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2427 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadHeaderFn()
2439 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadFooterFn()
2451 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadAbortFn()
2688 return llvm::StructType::get(CGM.getLLVMContext(), fields); in ConvertMemberPointerType()
3393 CGBuilderTy Builder(CGM, CGM.getLLVMContext()); in EmitMemberPointerConversion()
[all …]
H A DCGCall.cpp1607 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1613 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1720 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
2313 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2321 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2359 ArgAttrs[IRArgs.first] = llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2375 getLLVMContext(), in ConstructAttributeList()
2524 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2530 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
2531 llvm::AttributeSet::get(getLLVMContext(), RetAttrs), ArgAttrs); in ConstructAttributeList()
[all …]
H A DCGDebugInfo.cpp718 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
782 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
1467 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt()); in CreateRecordStaticField()
1469 C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat()); in CreateRecordStaticField()
2232 node = llvm::MDNode::get(CGM.getLLVMContext(), None); in addHeapAllocSiteMetadata()
2951 llvm::Type::getInt64Ty(CGM.getLLVMContext()), Count)); in CreateType()
4080 llvm::DILocation::get(CGM.getLLVMContext(), getLineNumber(CurLoc), in EmitLocation()
4113 CGM.getLLVMContext(), getLineNumber(Loc), getColumnNumber(Loc), in EmitLexicalBlockStart()
4396 llvm::DILocation::get(CGM.getLLVMContext(), Line, in EmitDeclare()
4509 auto DL = llvm::DILocation::get(CGM.getLLVMContext(), Line, Column, in EmitDeclareOfBlockDeclRefVariable()
[all …]
H A DCodeGenTypes.h120 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
H A DCGBuiltin.cpp152 llvm::IntegerType::get(CGF.getLLVMContext(), in MakeBinaryAtomicValue()
213 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomicPost()
588 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit()
893 CGF.getLLVMContext(), in EmitX86BitTestIntrinsic()
4432 IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
5215 getLLVMContext(), in EmitBuiltinExpr()
7581 getLLVMContext(), in EmitARMBuiltinExpr()
7770 getLLVMContext(), in EmitARMBuiltinExpr()
9507 getLLVMContext(), in EmitAArch64BuiltinExpr()
9798 getLLVMContext(), in EmitAArch64BuiltinExpr()
[all …]
H A DCGAtomic.cpp314 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, fnAttrB); in emitAtomicLibcall()
713 Order, CGF.CGM.getLLVMContext().getOrInsertSyncScopeID("")); in EmitAtomicOp()
721 Order, CGF.CGM.getLLVMContext()); in EmitAtomicOp()
753 CGF.getLLVMContext())); in EmitAtomicOp()
770 llvm::Type *IPtrTy = llvm::IntegerType::get(CGF.getLLVMContext(), in AddDirectArgument()
1417 llvm::IntegerType::get(CGF.getLLVMContext(), AtomicSizeInBits); in emitCastToAtomicIntPointer()
1668 CGF.getLLVMContext(), in convertRValueToInt()
H A DCodeGenModule.cpp947 llvm::MDNode::get(getLLVMContext(), {})); in DecorateInstructionWithInvariantGroup()
2246 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
2255 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
2260 auto &C = getLLVMContext(); in AddDependentLib()
2269 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
2291 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
6082 CGM.getLLVMContext(), D.getDecl()))}; in EmitGlobalDeclMetadata()
6135 llvm::LLVMContext &Context = getLLVMContext(); in EmitDeclMetadata()
6146 llvm::Value *DAddr = GetPointerConstant(getLLVMContext(), D); in EmitDeclMetadata()
6247 InternalId = llvm::MDString::get(getLLVMContext(), Out.str()); in CreateMetadataIdentifierImpl()
[all …]
H A DCodeGenPGO.cpp950 auto *I8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in emitCounterIncrement()
1076 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
1100 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
H A DCGObjCGNU.cpp1163 llvm::StructType::get(CGM.getLLVMContext(), in GenerateProtocolMethodList()
1653 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in ModuleInitFunction()
2012 llvm::StructType::get(CGM.getLLVMContext(), in CGObjCGNUstep2()
2139 VMContext(cgm.getLLVMContext()), ClassPtrAlias(nullptr), in CGObjCGNU()
2216 PropertyMetadataTy = llvm::StructType::get(CGM.getLLVMContext(), { in CGObjCGNU()
2801 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
2813 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
2820 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
3005 llvm::StructType::get(CGM.getLLVMContext(), { PtrToInt8Ty, PtrToInt8Ty }); in GenerateProtocolMethodList()
3637 selStructTy = llvm::StructType::get(CGM.getLLVMContext(), in ModuleInitFunction()
[all …]
H A DCGClass.cpp1001 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), DPT->getAddressSpace()); in emitMemcpyIR()
1006 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), SPT->getAddressSpace()); in emitMemcpyIR()
2679 llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitTypeMetadataCodeForVCall()
2787 llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD); in EmitVTablePtrCheck()
2811 CGM.getLLVMContext(), in EmitVTablePtrCheck()
2812 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitVTablePtrCheck()
2844 llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitVTableTypeCheckedLoad()
H A DConstantInitBuilder.cpp287 ty = llvm::StructType::get(Builder.CGM.getLLVMContext(), {}, Packed); in finishStruct()
H A DSwiftCallingConv.cpp545 llvm::IntegerType::get(CGM.getLLVMContext(), in finish()
570 auto &ctx = CGM.getLLVMContext(); in getCoerceAndExpandTypes()
H A DItaniumCXXABI.cpp725 TypeId = llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
790 CGM.getLLVMContext(), in EmitLoadOfMemberFunctionPointer()
791 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitLoadOfMemberFunctionPointer()
832 llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
1376 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
2000 llvm::MDNode::get(CGM.getLLVMContext(), in getVirtualFunctionPointer()
2331 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAcquireFn()
2343 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardReleaseFn()
2355 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAbortFn()
4713 llvm::BasicBlock::Create(CGM.getLLVMContext(), "", fn); in getClangCallTerminateFn()
H A DCGBlocks.cpp195 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor()
536 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
666 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
774 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
1375 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in buildGlobalBlock()
2637 llvm::StructType::create(getLLVMContext(), in getBlockByrefInfo()
H A DCGObjCRuntime.cpp111 llvm::Type::getIntNTy(CGF.getLLVMContext(), in EmitValueForIvarAtOffset()
H A DCGException.cpp267 llvm::Type::getInt8Ty(CGM.getLLVMContext()), in getOpaquePersonalityFn()
951 ParentPad = llvm::ConstantTokenNone::get(CGF.getLLVMContext()); in emitCatchPadBlock()
995 ParentPad = llvm::ConstantTokenNone::get(CGF.getLLVMContext()); in emitWasmCatchPadBlock()
1583 ParentPad = llvm::ConstantTokenNone::get(CGM.getLLVMContext()); in getTerminateFunclet()

12