Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.cpp135 return llvm::IntegerType::get(getLLVMContext(), in ConvertTypeForMem()
140 return llvm::IntegerType::get(getLLVMContext(), in ConvertTypeForMem()
165 getLLVMContext(), Context.getTypeSizeInChars(T).getQuantity() * 8); in convertTypeForLoadStore()
168 return llvm::IntegerType::get(getLLVMContext(), in convertTypeForLoadStore()
314 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
334 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
400 ResultType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
405 ResultType = llvm::Type::getInt1Ty(getLLVMContext()); in ConvertType()
449 ResultType = llvm::IntegerType::get(getLLVMContext(), in ConvertType()
455 getTypeForFormat(getLLVMContext(), Context.getFloatTypeSemantics(T), in ConvertType()
[all …]
H A DCGCall.cpp1629 resultType = llvm::PointerType::get(getLLVMContext(), addressSpace); in GetFunctionType()
1631 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1637 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1653 llvm::PointerType::get(getLLVMContext(), AddressSpace); in GetFunctionType()
1659 llvm::PointerType::getUnqual(getLLVMContext()); in GetFunctionType()
1686 getLLVMContext(), CGM.getDataLayout().getAllocaAddrSpace()); in GetFunctionType()
1691 getLLVMContext(), ArgInfo.getIndirectAddrSpace()); in GetFunctionType()
1738 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
2283 Attrs = Attrs.removeFnAttribute(getLLVMContext(), llvm::Attribute::Memory); in AdjustMemoryAttribute()
2285 getLLVMContext(), llvm::MemoryEffects::writeOnly()); in AdjustMemoryAttribute()
[all …]
H A DCGExprConstant.cpp222 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
251 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
266 ToUpdate = llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar); in addBits()
507 CGM.getLLVMContext(), Packed ? PackedElems : UnpackedElems, Packed); in buildFrom()
1026 llvm::StructType::get(CGM.getLLVMContext(), Types, true); in EmitArrayConstant()
1043 : CGM(emitter.CGM), Emitter(emitter), VMContext(CGM.getLLVMContext()) { in ConstExprEmitter()
1095 return llvm::ConstantInt::get(CGM.getLLVMContext(), A); in ProduceIntToIntCast()
1270 return llvm::ConstantInt::get(CGM.getLLVMContext(), I->getValue()); in VisitIntegerLiteral()
1355 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value); in EmitArrayInitialization()
1481 return llvm::ConstantInt::get(CGM.getLLVMContext(), -CI->getValue()); in VisitUnaryMinus()
[all …]
H A DCGGPUBuiltin.cpp96 llvm::LLVMContext &Ctx = CGF->CGM.getLLVMContext(); in packArgsIntoNVPTXFormatBuffer()
166 llvm::ConstantInt::get(llvm::Type::getInt32Ty(CGM.getLLVMContext()), in EmitDevicePrintfCallExpr()
H A DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
H A DCGRecordLayoutBuilder.cpp131 return llvm::Type::getIntNTy(Types.getLLVMContext(), AlignedBits); in getIntNType()
135 return llvm::Type::getIntNTy(Types.getLLVMContext(), in getCharType()
863 llvm::PointerType::getUnqual(Types.getLLVMContext()))); in accumulateVPtrs()
867 llvm::PointerType::getUnqual(Types.getLLVMContext()))); in accumulateVPtrs()
1100 getLLVMContext(), BaseBuilder.FieldTypes, "", BaseBuilder.Packed); in ComputeRecordLayout()
H A DMicrosoftCXXABI.cpp500 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType()
523 CGM.getLLVMContext(), FieldTypes, "rtti.BaseClassDescriptor"); in getBaseClassDescriptorType()
532 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
548 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
739 CGM.getLLVMContext(), FieldTypes, "eh.CatchableType"); in getCatchableTypeType()
758 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, CTATypeName); in getCatchableTypeArrayType()
771 ThrowInfoType = llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, in getThrowInfoType()
2021 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2450 llvm::Type *VTy = llvm::Type::getInt8Ty(CGM.getLLVMContext()); in getTlsGuardVar()
2464 llvm::FunctionType::get(llvm::Type::getVoidTy(CGM.getLLVMContext()), {}, in getDynTlsOnDemandInitFn()
[all …]
H A DCGCXXABI.cpp60 llvm::PointerType::getUnqual(CGM.getLLVMContext())); in EmitLoadOfMemberFunctionPointer()
70 llvm::PointerType::get(CGF.getLLVMContext(), Base.getAddressSpace()); in EmitMemberDataPointerAddress()
H A DCGStmt.cpp2259 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
2279 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in EmitSwitchStmt()
2389 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
2415 return {llvm::ConstantInt::get(getLLVMContext(), IntResult), nullptr}; in EmitAsmInput()
2420 return {llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt()), in EmitAsmInput()
2463 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2490 CGF.getLLVMContext(), llvm::Attribute::ElementType, Pair.value()); in UpdateAsmCallInst()
2505 llvm::MDNode::get(CGF.getLLVMContext(), in UpdateAsmCallInst()
2537 llvm::LLVMContext &CTX = CGF.getLLVMContext(); in EmitAsmStores()
2620 auto &Ctx = CGF->CGM.getLLVMContext(); in EmitHipStdParUnsupportedAsm()
[all …]
H A DCGDebugInfo.cpp776 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
786 llvm::Type::getInt64Ty(CGM.getLLVMContext()), NumElems - 1)); in CreateType()
847 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
1225 llvm::MDString::get(CGM.getLLVMContext(), StringRef("btf_type_tag")), in CreatePointerLikeType()
1226 llvm::MDString::get(CGM.getLLVMContext(), Tag)}; in CreatePointerLikeType()
1228 llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in CreatePointerLikeType()
1819 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt()); in CreateRecordStaticField()
1821 C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat()); in CreateRecordStaticField()
2263 llvm::ConstantInt::get(CGM.getLLVMContext(), TA.getAsIntegral()))); in CollectTemplateParams()
2434 llvm::MDString::get(CGM.getLLVMContext(), StringRef("btf_decl_tag")), in CollectBTFDeclTagAnnotations()
[all …]
H A DCGBuiltin.cpp84 llvm::Type *Int8 = llvm::IntegerType::getInt8Ty(CGF.CGM.getLLVMContext()); in initializeAlloca()
225 CGF.getLLVMContext(), CGF.getContext().getTypeSize(T)); in MakeBinaryAtomicValue()
278 CGF.getLLVMContext(), CGF.getContext().getTypeSize(T)); in EmitBinaryAtomicPost()
315 CGF.getLLVMContext(), CGF.getContext().getTypeSize(T)); in MakeAtomicCmpXchgValue()
411 llvm::Type *Int128Ty = llvm::IntegerType::get(CGF.getLLVMContext(), 128); in EmitAtomicCmpXchg128ForMSIntrin()
473 llvm::IntegerType::get(CGF.getLLVMContext(), LoadSize.getQuantity() * 8); in EmitISOVolatileLoad()
659 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit()
1229 CGF.getLLVMContext(), in EmitX86BitTestIntrinsic()
1377 0, Attribute::get(CGF.getLLVMContext(), Attribute::ElementType, RetType)); in emitPPCLoadReserveIntrinsic()
1418 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, in EmitMSVCRTSetJmp()
[all …]
H A DCGObjCRuntime.cpp109 Address(V, llvm::Type::getIntNTy(CGF.getLLVMContext(), Info->StorageSize), in EmitValueForIvarAtOffset()
366 llvm::PointerType::get(CGM.getLLVMContext(), ProgramAS); in getMessageSendInfo()
H A DCGExpr.cpp712 llvm::Value *True = llvm::ConstantInt::getTrue(getLLVMContext()); in EmitTypeCheck()
1222 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1886 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1915 auto &Ctx = getLLVMContext(); in EmitScalarRangeCheck()
2012 llvm::MDNode::get(getLLVMContext(), std::nullopt)); in EmitLoadOfScalar()
2918 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(), in EmitGlobalNamedRegister()
2921 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
2927 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)); in EmitGlobalNamedRegister()
3333 llvm::ConstantDataArray::getString(getLLVMContext(), Buffer) in EmitCheckTypeDescriptor()
3360 V = Builder.CreateBitCast(V, llvm::Type::getIntNTy(getLLVMContext(), in EmitCheckValue()
[all …]
H A DCGAtomic.cpp322 llvm::AttrBuilder fnAttrB(CGF.getLLVMContext()); in emitAtomicLibcall()
326 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, fnAttrB); in emitAtomicLibcall()
770 Order, CGF.CGM.getLLVMContext().getOrInsertSyncScopeID("")); in EmitAtomicOp()
778 Order, CGF.CGM.getLLVMContext()); in EmitAtomicOp()
810 CGF.getLLVMContext())); in EmitAtomicOp()
1053 auto *DestType = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitAtomicExpr()
1354 llvm::IntegerType::get(CGF.getLLVMContext(), AtomicSizeInBits); in castToAtomicIntPointer()
1623 CGF.getLLVMContext(), in convertRValueToInt()
H A DCodeGenTypes.h106 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
H A DCodeGenModule.cpp929 getLLVMContext(), (getTarget().getTargetOpts().AMDGPUPrintfKindVal == in Release()
1548 llvm::MDNode::get(getLLVMContext(), {})); in DecorateInstructionWithInvariantGroup()
2839 F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), IID)); in SetFunctionAttributes()
2994 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
2995 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AppendLinkerOptions()
3003 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
3004 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDetectMismatch()
3008 auto &C = getLLVMContext(); in AddDependentLib()
3017 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
3039 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
[all …]
H A DCGCoroutine.cpp713 llvm::MDNode::get(CGF.CGM.getLLVMContext(), {})); in EmitGroAlloca()
1012 Args.push_back(llvm::ConstantTokenNone::get(getLLVMContext())); in EmitCoroutineIntrinsic()
1020 Args.push_back(llvm::ConstantTokenNone::get(getLLVMContext())); in EmitCoroutineIntrinsic()
H A DCGObjCGNU.cpp1179 llvm::StructType::get(CGM.getLLVMContext(), in GenerateProtocolMethodList()
1665 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in ModuleInitFunction()
2021 llvm::StructType::get(CGM.getLLVMContext(), in CGObjCGNUstep2()
2059 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in GenerateDirectMethodPrologue()
2249 VMContext(cgm.getLLVMContext()), ClassPtrAlias(nullptr), in CGObjCGNU()
2334 PropertyMetadataTy = llvm::StructType::get(CGM.getLLVMContext(), { in CGObjCGNU()
3009 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
3021 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
3028 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
3212 llvm::StructType::get(CGM.getLLVMContext(), { PtrToInt8Ty, PtrToInt8Ty }); in GenerateProtocolMethodList()
[all …]
H A DTargetInfo.cpp181 auto &C = CGF.getLLVMContext(); in createEnqueuedBlockKernel()
H A DABIInfo.cpp23 return CGT.getLLVMContext(); in getVMContext()
H A DCodeGenPGO.cpp1225 auto *I8PtrTy = llvm::PointerType::getUnqual(CGM.getLLVMContext()); in emitMCDCParameters()
1257 auto *I8PtrTy = llvm::PointerType::getUnqual(CGM.getLLVMContext()); in emitMCDCTestVectorBitmapUpdate()
1462 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
1486 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
H A DItaniumCXXABI.cpp719 TypeId = llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
782 CGM.getLLVMContext(), in EmitLoadOfMemberFunctionPointer()
783 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitLoadOfMemberFunctionPointer()
822 llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
1504 llvm::AttrBuilder FuncAttrs(CGF.getLLVMContext()); in getItaniumDynamicCastFn()
1509 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
2224 llvm::MDNode::get(CGM.getLLVMContext(), in getVirtualFunctionPointer()
2560 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAcquireFn()
2572 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardReleaseFn()
2584 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAbortFn()
[all …]
H A DCGClass.cpp332 CGM.getLLVMContext(), Value.getType()->getPointerAddressSpace()); in GetAddressOfBaseClass()
2136 llvm::PointerType::get(getLLVMContext(), TargetThisAS); in EmitCXXConstructorCall()
2587 llvm::Type *PtrTy = llvm::PointerType::get(CGM.getLLVMContext(), GlobalsAS); in InitializeVTablePointer()
2773 llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitTypeMetadataCodeForVCall()
2885 llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD); in EmitVTablePtrCheck()
2908 CGM.getLLVMContext(), in EmitVTablePtrCheck()
2909 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitVTablePtrCheck()
2942 llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitVTableTypeCheckedLoad()
H A DCGCXX.cpp254 Ty = llvm::PointerType::getUnqual(CGM.getLLVMContext()); in BuildAppleKextVirtualCall()
H A DCGBlocks.cpp161 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor()
568 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
652 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
763 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
1356 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in buildGlobalBlock()
1411 getLLVMContext(), in setBlockContextParameter()
2592 llvm::StructType::create(getLLVMContext(), in getBlockByrefInfo()

12