Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/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()
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 …]
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()
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()
2044 return llvm::ConstantInt::get(CGM.getLLVMContext(), Value.getInt()); in tryEmitPrivate()
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()
[all …]
H A DCGStmt.cpp1931 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
1951 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in EmitSwitchStmt()
2063 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
2095 return llvm::ConstantInt::get(getLLVMContext(), IntResult); in EmitAsmInput()
2100 return llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt()); in EmitAsmInput()
2142 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2178 llvm::MDNode::get(CGF.getLLVMContext(), in UpdateAsmCallInst()
2296 llvm::Type *ConvTy = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmStmt()
2563 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
2616 llvm::IntegerType::get(getLLVMContext(), (unsigned)ResSize)); in EmitAsmStmt()
[all …]
H A DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
H A DCGExpr.cpp59 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()
2605 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(), in EmitGlobalNamedRegister()
2608 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
2614 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)); in EmitGlobalNamedRegister()
3011 llvm::ConstantDataArray::getString(getLLVMContext(), Buffer) in EmitCheckTypeDescriptor()
3038 V = Builder.CreateBitCast(V, llvm::Type::getIntNTy(getLLVMContext(), in EmitCheckValue()
[all …]
H A DMicrosoftCXXABI.cpp471 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType()
494 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()
729 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, CTATypeName); in getCatchableTypeArrayType()
742 ThrowInfoType = llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, in getThrowInfoType()
1981 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2423 llvm::FunctionType::get(llvm::Type::getVoidTy(CGM.getLLVMContext()), in getInitThreadHeaderFn()
2427 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadHeaderFn()
[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 DCGCall.cpp1606 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1612 resultType = llvm::Type::getVoidTy(getLLVMContext()); in GetFunctionType()
1719 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
2311 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2319 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2357 ArgAttrs[IRArgs.first] = llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2373 getLLVMContext(), in ConstructAttributeList()
2518 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2524 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
2525 llvm::AttributeSet::get(getLLVMContext(), RetAttrs), ArgAttrs); in ConstructAttributeList()
[all …]
H A DCGGPUBuiltin.cpp77 llvm::LLVMContext &Ctx = CGM.getLLVMContext(); in EmitNVPTXDevicePrintfCallExpr()
H A DCGBuiltin.cpp77 llvm::Type *Int8 = llvm::IntegerType::getInt8Ty(CGF.CGM.getLLVMContext()); in initializeAlloca()
152 llvm::IntegerType::get(CGF.getLLVMContext(), in MakeBinaryAtomicValue()
213 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomicPost()
255 CGF.getLLVMContext(), CGF.getContext().getTypeSize(T)); in MakeAtomicCmpXchgValue()
350 llvm::Type *Int128Ty = llvm::IntegerType::get(CGF.getLLVMContext(), 128); in EmitAtomicCmpXchg128ForMSIntrin()
416 llvm::IntegerType::get(CGF.getLLVMContext(), LoadSize.getQuantity() * 8); in EmitISOVolatileLoad()
430 llvm::IntegerType::get(CGF.getLLVMContext(), StoreSize.getQuantity() * 8); in EmitISOVolatileStore()
588 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit()
649 llvm::MDBuilder MDHelper(CGF.getLLVMContext()); in emitRangedBuiltin()
893 CGF.getLLVMContext(), in EmitX86BitTestIntrinsic()
[all …]
H A DCGDebugInfo.cpp740 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
804 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
1486 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt()); in CreateRecordStaticField()
1488 C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat()); in CreateRecordStaticField()
1948 llvm::ConstantInt::get(CGM.getLLVMContext(), TA.getAsIntegral()))); in CollectTemplateParams()
2251 node = llvm::MDNode::get(CGM.getLLVMContext(), None); in addHeapAllocSiteMetadata()
2874 llvm::Type::getInt64Ty(CGM.getLLVMContext()), Count ? Count : -1)); in CreateType()
2900 llvm::Type::getInt64Ty(CGM.getLLVMContext()), Ty->getNumColumns())); in CreateType()
2903 llvm::Type::getInt64Ty(CGM.getLLVMContext()), Ty->getNumRows())); in CreateType()
2970 llvm::Type::getInt64Ty(CGM.getLLVMContext()), Count)); in CreateType()
[all …]
H A DCodeGenModule.cpp922 llvm::MDNode::get(getLLVMContext(), {})); in DecorateInstructionWithInvariantGroup()
2072 F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(), IID)); in SetFunctionAttributes()
2216 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
2217 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AppendLinkerOptions()
2225 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
2226 LinkerOptionsMetadata.push_back(llvm::MDNode::get(getLLVMContext(), MDOpts)); in AddDetectMismatch()
2230 auto &C = getLLVMContext(); in AddDependentLib()
2239 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
2261 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
2475 llvm::Constant *s = llvm::ConstantDataArray::getString(getLLVMContext(), Str); in EmitAnnotationString()
[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 DCodeGenTypes.h120 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
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.cpp1161 llvm::StructType::get(CGM.getLLVMContext(), in GenerateProtocolMethodList()
1651 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in ModuleInitFunction()
2009 llvm::StructType::get(CGM.getLLVMContext(), in CGObjCGNUstep2()
2136 VMContext(cgm.getLLVMContext()), ClassPtrAlias(nullptr), in CGObjCGNU()
2213 PropertyMetadataTy = llvm::StructType::get(CGM.getLLVMContext(), { in CGObjCGNU()
2798 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
2810 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
2817 llvm::StructType::get(CGM.getLLVMContext(), { in GenerateMethodList()
3002 llvm::StructType::get(CGM.getLLVMContext(), { PtrToInt8Ty, PtrToInt8Ty }); in GenerateProtocolMethodList()
3634 selStructTy = llvm::StructType::get(CGM.getLLVMContext(), in ModuleInitFunction()
[all …]
H A DCGClass.cpp1004 llvm::Type::getInt8PtrTy(CGF.getLLVMContext(), DPT->getAddressSpace()); in emitMemcpyIR()
1009 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 DItaniumCXXABI.cpp719 TypeId = llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
781 CGM.getLLVMContext(), in EmitLoadOfMemberFunctionPointer()
782 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitLoadOfMemberFunctionPointer()
823 llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
1367 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
1986 llvm::MDNode::get(CGM.getLLVMContext(), in getVirtualFunctionPointer()
2317 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAcquireFn()
2329 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardReleaseFn()
2341 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAbortFn()
4672 llvm::BasicBlock::Create(CGM.getLLVMContext(), "", fn); in getClangCallTerminateFn()
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 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()
2666 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