Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenTypes.cpp113 return llvm::IntegerType::get(getLLVMContext(), in ConvertTypeForMem()
356 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
364 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
384 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
466 ResultType = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
471 ResultType = llvm::Type::getInt1Ty(getLLVMContext()); in ConvertType()
515 ResultType = llvm::IntegerType::get(getLLVMContext(), in ConvertType()
521 getTypeForFormat(getLLVMContext(), Context.getFloatTypeSemantics(T), in ConvertType()
528 getLLVMContext(), Context.getFloatTypeSemantics(T), in ConvertType()
538 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
[all …]
H A DCGOpenCLRuntime.cpp68 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in getPointerType()
88 CGM.getLLVMContext(), Name), in getPipeType()
97 CGM.getLLVMContext(), "opencl.sampler_t"), in getSamplerType()
106 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize()
116 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemAlign()
126 CGM.getLLVMContext(), in getGenericVoidPointerType()
H A DCGExprConstant.cpp220 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
249 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
264 ToUpdate = llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar); in addBits()
505 CGM.getLLVMContext(), Packed ? PackedElems : UnpackedElems, Packed); in buildFrom()
1005 llvm::StructType::get(CGM.getLLVMContext(), Types, true); in EmitArrayConstant()
1022 : CGM(emitter.CGM), Emitter(emitter), VMContext(CGM.getLLVMContext()) { in ConstExprEmitter()
2080 return llvm::ConstantInt::get(CGM.getLLVMContext(), Value.getInt()); in tryEmitPrivate()
2082 return llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2087 Complex[0] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2089 Complex[1] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
[all …]
H A DCGGPUBuiltin.cpp96 llvm::LLVMContext &Ctx = CGF->CGM.getLLVMContext(); in packArgsIntoNVPTXFormatBuffer()
164 llvm::ConstantInt::get(llvm::Type::getInt32Ty(CGM.getLLVMContext()), in EmitDevicePrintfCallExpr()
H A DCGCall.cpp1645 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1651 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1758 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
2133 llvm::AttrBuilder FuncAttrs(getLLVMContext()); in ConstructAttributeList()
2134 llvm::AttrBuilder RetAttrs(getLLVMContext()); in ConstructAttributeList()
2422 llvm::AttrBuilder SRETAttrs(getLLVMContext()); in ConstructAttributeList()
2429 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2434 llvm::AttrBuilder Attrs(getLLVMContext()); in ConstructAttributeList()
2437 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2449 llvm::AttrBuilder Attrs(getLLVMContext()); in ConstructAttributeList()
[all …]
H A DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
H A DCGStmt.cpp2062 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
2082 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in EmitSwitchStmt()
2192 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
2219 return {llvm::ConstantInt::get(getLLVMContext(), IntResult), nullptr}; in EmitAsmInput()
2224 return {llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt()), in EmitAsmInput()
2267 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2294 CGF.getLLVMContext(), llvm::Attribute::ElementType, Pair.value()); in UpdateAsmCallInst()
2309 llvm::MDNode::get(CGF.getLLVMContext(), in UpdateAsmCallInst()
2443 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmStmt()
2706 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
[all …]
H A DMicrosoftCXXABI.cpp490 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType()
513 CGM.getLLVMContext(), FieldTypes, "rtti.BaseClassDescriptor"); in getBaseClassDescriptorType()
522 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
538 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
729 CGM.getLLVMContext(), FieldTypes, "eh.CatchableType"); in getCatchableTypeType()
748 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, CTATypeName); in getCatchableTypeArrayType()
761 ThrowInfoType = llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, in getThrowInfoType()
1995 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2425 llvm::Type *VTy = llvm::Type::getInt8Ty(CGM.getLLVMContext()); in getTlsGuardVar()
2439 llvm::FunctionType::get(llvm::Type::getVoidTy(CGM.getLLVMContext()), {}, in getDynTlsOnDemandInitFn()
[all …]
H A DSanitizerMetadata.cpp107 llvm::MDNode::get(CGM.getLLVMContext(), std::nullopt)); in disableSanitizerForInstruction()
H A DCGDebugInfo.cpp742 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
808 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
1166 llvm::MDString::get(CGM.getLLVMContext(), StringRef("btf_type_tag")), in CreatePointerLikeType()
1167 llvm::MDString::get(CGM.getLLVMContext(), Tag)}; in CreatePointerLikeType()
1169 llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in CreatePointerLikeType()
1572 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt()); in CreateRecordStaticField()
1574 C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat()); in CreateRecordStaticField()
2033 llvm::ConstantInt::get(CGM.getLLVMContext(), TA.getAsIntegral()))); in CollectTemplateParams()
2196 llvm::MDString::get(CGM.getLLVMContext(), StringRef("btf_decl_tag")), in CollectBTFDeclTagAnnotations()
2197 llvm::MDString::get(CGM.getLLVMContext(), I->getBTFDeclTag())}; in CollectBTFDeclTagAnnotations()
[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 DCGExpr.cpp61 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
705 llvm::Value *True = llvm::ConstantInt::getTrue(getLLVMContext()); in EmitTypeCheck()
1005 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1635 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1664 auto &Ctx = getLLVMContext(); in EmitScalarRangeCheck()
1758 llvm::MDNode::get(getLLVMContext(), std::nullopt)); in EmitLoadOfScalar()
2655 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(), in EmitGlobalNamedRegister()
2658 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
2664 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)); in EmitGlobalNamedRegister()
3071 llvm::ConstantDataArray::getString(getLLVMContext(), Buffer) in EmitCheckTypeDescriptor()
[all …]
H A DCGBuiltin.cpp77 llvm::Type *Int8 = llvm::IntegerType::getInt8Ty(CGF.CGM.getLLVMContext()); in initializeAlloca()
188 llvm::IntegerType::get(CGF.getLLVMContext(), in MakeBinaryAtomicValue()
250 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomicPost()
292 CGF.getLLVMContext(), CGF.getContext().getTypeSize(T)); in MakeAtomicCmpXchgValue()
387 llvm::Type *Int128Ty = llvm::IntegerType::get(CGF.getLLVMContext(), 128); in EmitAtomicCmpXchg128ForMSIntrin()
453 llvm::IntegerType::get(CGF.getLLVMContext(), LoadSize.getQuantity() * 8); in EmitISOVolatileLoad()
467 llvm::IntegerType::get(CGF.getLLVMContext(), StoreSize.getQuantity() * 8); in EmitISOVolatileStore()
625 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit()
686 llvm::MDBuilder MDHelper(CGF.getLLVMContext()); in emitRangedBuiltin()
692 llvm::MDNode::get(CGF.getLLVMContext(), std::nullopt)); in emitRangedBuiltin()
[all …]
H A DCGAtomic.cpp319 llvm::AttrBuilder fnAttrB(CGF.getLLVMContext()); in emitAtomicLibcall()
323 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, fnAttrB); in emitAtomicLibcall()
734 Order, CGF.CGM.getLLVMContext().getOrInsertSyncScopeID("")); in EmitAtomicOp()
742 Order, CGF.CGM.getLLVMContext()); in EmitAtomicOp()
774 CGF.getLLVMContext())); in EmitAtomicOp()
791 llvm::Type *ITy = llvm::IntegerType::get(CGF.getLLVMContext(), SizeInBits); in AddDirectArgument()
1471 llvm::IntegerType::get(CGF.getLLVMContext(), AtomicSizeInBits); in emitCastToAtomicIntPointer()
1722 CGF.getLLVMContext(), in convertRValueToInt()
H A DCodeGenTypes.h117 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
H A DCodeGenModule.cpp1079 llvm::MDNode::get(getLLVMContext(), {})); in DecorateInstructionWithInvariantGroup()
2413 F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), IID)); in SetFunctionAttributes()
2568 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
2569 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AppendLinkerOptions()
2577 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
2578 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDetectMismatch()
2582 auto &C = getLLVMContext(); in AddDependentLib()
2591 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
2613 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
2852 llvm::Constant *s = llvm::ConstantDataArray::getString(getLLVMContext(), Str); in EmitAnnotationString()
[all …]
H A DCGObjCGNU.cpp1164 llvm::StructType::get(CGM.getLLVMContext(), in GenerateProtocolMethodList()
1656 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in ModuleInitFunction()
2015 llvm::StructType::get(CGM.getLLVMContext(), in CGObjCGNUstep2()
2142 VMContext(cgm.getLLVMContext()), ClassPtrAlias(nullptr), in CGObjCGNU()
2224 PropertyMetadataTy = llvm::StructType::get(CGM.getLLVMContext(), { in CGObjCGNU()
2883 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
2895 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
2902 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
3087 llvm::StructType::get(CGM.getLLVMContext(), { PtrToInt8Ty, PtrToInt8Ty }); in GenerateProtocolMethodList()
3718 selStructTy = llvm::StructType::get(CGM.getLLVMContext(), in ModuleInitFunction()
[all …]
H A DCodeGenPGO.cpp961 auto *I8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in emitCounterIncrement()
1087 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
1111 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
H A DConstantInitBuilder.cpp286 ty = llvm::StructType::get(Builder.CGM.getLLVMContext(), {}, Packed); in finishStruct()
H A DItaniumCXXABI.cpp673 TypeId = llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
742 CGM.getLLVMContext(), in EmitLoadOfMemberFunctionPointer()
743 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitLoadOfMemberFunctionPointer()
784 llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
1328 llvm::AttrBuilder FuncAttrs(CGF.getLLVMContext()); in getItaniumDynamicCastFn()
1332 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
1961 llvm::MDNode::get(CGM.getLLVMContext(), in getVirtualFunctionPointer()
2292 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAcquireFn()
2304 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardReleaseFn()
2316 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAbortFn()
[all …]
H A DCGBlocks.cpp179 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor()
584 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
668 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
779 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
1376 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in buildGlobalBlock()
2614 llvm::StructType::create(getLLVMContext(), in getBlockByrefInfo()
H A DSwiftCallingConv.cpp547 llvm::IntegerType::get(CGM.getLLVMContext(), in finish()
572 auto &ctx = CGM.getLLVMContext(); in getCoerceAndExpandTypes()
H A DCGException.cpp267 llvm::Type::getInt8Ty(CGM.getLLVMContext()), in getOpaquePersonalityFn()
957 ParentPad = llvm::ConstantTokenNone::get(CGF.getLLVMContext()); in emitCatchPadBlock()
1001 ParentPad = llvm::ConstantTokenNone::get(CGF.getLLVMContext()); in emitWasmCatchPadBlock()
1586 ParentPad = llvm::ConstantTokenNone::get(CGM.getLLVMContext()); in getTerminateFunclet()
H A DCGObjCRuntime.cpp112 llvm::Type::getIntNTy(CGF.getLLVMContext(), in EmitValueForIvarAtOffset()
H A DCGClass.cpp2745 llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitTypeMetadataCodeForVCall()
2858 llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD); in EmitVTablePtrCheck()
2882 CGM.getLLVMContext(), in EmitVTablePtrCheck()
2883 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitVTablePtrCheck()
2916 llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitVTableTypeCheckedLoad()

12