Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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()
538 ResultType = getTypeForFormat(getLLVMContext(), in ConvertType()
704 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
741 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
763 ResultType = llvm::Type::getInt32Ty(getLLVMContext()); in ConvertType()
810 ResultType = llvm::StructType::get(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.cpp219 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
248 add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar), in addBits()
504 CGM.getLLVMContext(), Packed ? PackedElems : UnpackedElems, Packed); in buildFrom()
1005 llvm::StructType::get(CGM.getLLVMContext(), Types, true); in EmitArrayConstant()
2083 return llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2088 Complex[0] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2090 Complex[1] = llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2103 return llvm::ConstantInt::get(CGM.getLLVMContext(), in tryEmitPrivate()
2106 return llvm::ConstantFP::get(CGM.getLLVMContext(), Init); in tryEmitPrivate()
2111 Complex[0] = llvm::ConstantFP::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.cpp1752 return llvm::StructType::get(getLLVMContext()); in GetFunctionTypeForVTable()
2072 llvm::AttrBuilder FuncAttrs(getLLVMContext()); in ConstructAttributeList()
2073 llvm::AttrBuilder RetAttrs(getLLVMContext()); in ConstructAttributeList()
2369 llvm::AttrBuilder SRETAttrs(getLLVMContext()); in ConstructAttributeList()
2381 llvm::AttrBuilder Attrs(getLLVMContext()); in ConstructAttributeList()
2396 llvm::AttrBuilder Attrs(getLLVMContext()); in ConstructAttributeList()
2431 llvm::AttrBuilder Attrs(getLLVMContext()); in ConstructAttributeList()
2438 getLLVMContext(), in ConstructAttributeList()
2602 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), Attrs)); in ConstructAttributeList()
2608 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
[all …]
H A DPatternInit.cpp50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
H A DCGStmt.cpp2051 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitSwitchStmt()
2071 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in EmitSwitchStmt()
2181 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmInputLValue()
2208 return {llvm::ConstantInt::get(getLLVMContext(), IntResult), nullptr}; in EmitAsmInput()
2213 return {llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt()), in EmitAsmInput()
2256 return llvm::MDNode::get(CGF.getLLVMContext(), Locs); in getAsmSrcLocInfo()
2283 CGF.getLLVMContext(), llvm::Attribute::ElementType, Pair.value()); in UpdateAsmCallInst()
2298 llvm::MDNode::get(CGF.getLLVMContext(), in UpdateAsmCallInst()
2432 Ty = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmStmt()
2695 ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes); in EmitAsmStmt()
[all …]
H A DMicrosoftCXXABI.cpp509 CGM.getLLVMContext(), "rtti.ClassHierarchyDescriptor"); in getClassHierarchyDescriptorType()
525 CGM.getLLVMContext(), "rtti.CompleteObjectLocator"); in getCompleteObjectLocatorType()
716 CGM.getLLVMContext(), FieldTypes, "eh.CatchableType"); in getCatchableTypeType()
1988 llvm::IntegerType::getInt32Ty(CGF.getLLVMContext()), in EmitVirtualDestructorCall()
2412 llvm::Type *VTy = llvm::Type::getInt8Ty(CGM.getLLVMContext()); in getTlsGuardVar()
2430 llvm::AttributeList::get(CGM.getLLVMContext(), in getDynTlsOnDemandInitFn()
2520 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadHeaderFn()
2532 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadFooterFn()
2544 llvm::AttributeList::get(CGM.getLLVMContext(), in getInitThreadAbortFn()
2781 return llvm::StructType::get(CGM.getLLVMContext(), fields); in ConvertMemberPointerType()
[all …]
H A DSanitizerMetadata.cpp107 llvm::MDNode::get(CGM.getLLVMContext(), None)); in disableSanitizerForInstruction()
H A DCGDebugInfo.cpp725 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
791 llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0)); in CreateType()
1155 llvm::MDString::get(CGM.getLLVMContext(), Tag)}; in CreatePointerLikeType()
1157 llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in CreatePointerLikeType()
2187 llvm::MDString::get(CGM.getLLVMContext(), I->getBTFDeclTag())}; in CollectBTFDeclTagAnnotations()
2188 Annotations.push_back(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in CollectBTFDeclTagAnnotations()
2359 node = llvm::MDNode::get(CGM.getLLVMContext(), None); in addHeapAllocSiteMetadata()
3095 llvm::Type::getInt64Ty(CGM.getLLVMContext()), Count)); in CreateType()
4270 llvm::DILocation::get(CGM.getLLVMContext(), getLineNumber(CurLoc), in EmitLocation()
4303 CGM.getLLVMContext(), getLineNumber(Loc), getColumnNumber(Loc), in EmitLexicalBlockStart()
[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.cpp60 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
1047 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
1689 llvm::MDBuilder MDHelper(getLLVMContext()); in getRangeForLoadFromType()
1718 auto &Ctx = getLLVMContext(); in EmitScalarRangeCheck()
2695 M->addOperand(llvm::MDNode::get(CGM.getLLVMContext(), Ops)); in EmitGlobalNamedRegister()
3267 llvm::AttrBuilder B(CGF.getLLVMContext()); in emitCheckHandlerCall()
3276 llvm::AttributeList::get(CGF.getLLVMContext(), in emitCheckHandlerCall()
3340 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitCheck()
3406 llvm::MDBuilder MDHelper(getLLVMContext()); in EmitCfiSlowPathCheck()
3525 CGM.getLLVMContext(), in EmitCfiCheckFail()
[all …]
H A DCGBuiltin.cpp175 llvm::IntegerType::get(CGF.getLLVMContext(), in MakeBinaryAtomicValue()
237 llvm::IntegerType::get(CGF.getLLVMContext(), in EmitBinaryAtomicPost()
612 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit()
917 CGF.getLLVMContext(), in EmitX86BitTestIntrinsic()
4511 IntegerType::get(getLLVMContext(), in EmitBuiltinExpr()
5303 getLLVMContext(), in EmitBuiltinExpr()
7699 getLLVMContext(), in EmitARMBuiltinExpr()
7897 getLLVMContext(), in EmitARMBuiltinExpr()
9701 getLLVMContext(), in EmitAArch64BuiltinExpr()
10067 getLLVMContext(), in EmitAArch64BuiltinExpr()
[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.h116 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext() function
H A DCodeGenModule.cpp1071 llvm::MDNode::get(getLLVMContext(), {})); in DecorateInstructionWithInvariantGroup()
2439 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts); in AppendLinkerOptions()
2448 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDetectMismatch()
2453 auto &C = getLLVMContext(); in AddDependentLib()
2462 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt); in AddDependentLib()
2484 llvm::LLVMContext &Context = CGM.getLLVMContext(); in addLinkOptionsPostorder()
6490 CGM.getLLVMContext(), D.getDecl()))}; in EmitGlobalDeclMetadata()
6621 llvm::LLVMContext &Context = getLLVMContext(); in EmitDeclMetadata()
6632 llvm::Value *DAddr = GetPointerConstant(getLLVMContext(), D); in EmitDeclMetadata()
6740 InternalId = llvm::MDString::get(getLLVMContext(), Out.str()); in CreateMetadataIdentifierImpl()
[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.cpp958 auto *I8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in emitCounterIncrement()
1084 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
1108 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
H A DConstantInitBuilder.cpp287 ty = llvm::StructType::get(Builder.CGM.getLLVMContext(), {}, Packed); in finishStruct()
H A DCGBlocks.cpp179 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor()
586 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
670 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
781 llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true); in computeBlockInfo()
1380 llvm::IRBuilder<> b(llvm::BasicBlock::Create(CGM.getLLVMContext(), "entry", in buildGlobalBlock()
2618 llvm::StructType::create(getLLVMContext(), in getBlockByrefInfo()
H A DSwiftCallingConv.cpp546 llvm::IntegerType::get(CGM.getLLVMContext(), in finish()
571 auto &ctx = CGM.getLLVMContext(); in getCoerceAndExpandTypes()
H A DItaniumCXXABI.cpp685 TypeId = llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
754 CGM.getLLVMContext(), in EmitLoadOfMemberFunctionPointer()
755 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitLoadOfMemberFunctionPointer()
796 llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD); in EmitLoadOfMemberFunctionPointer()
1343 CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, FuncAttrs); in getItaniumDynamicCastFn()
1967 llvm::MDNode::get(CGM.getLLVMContext(), in getVirtualFunctionPointer()
2298 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAcquireFn()
2310 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardReleaseFn()
2322 llvm::AttributeList::get(CGM.getLLVMContext(), in getGuardAbortFn()
4677 llvm::BasicBlock::Create(CGM.getLLVMContext(), "", fn); in getClangCallTerminateFn()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/
H A DLLVMToLLVMIRTranslation.cpp344 llvm::AttrBuilder b(moduleTranslation.getLLVMContext()); in convertOperationImpl()
351 moduleTranslation.getLLVMContext(), it.index() + shift, b); in convertOperationImpl()
424 llvm::MDBuilder(moduleTranslation.getLLVMContext()) in convertOperationImpl()
443 branchWeights = llvm::MDBuilder(moduleTranslation.getLLVMContext()) in convertOperationImpl()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/NVVM/
H A DNVVMToLLVMIRTranslation.cpp124 llvm::LLVMContext &llvmContext = moduleTranslation.getLLVMContext(); in amendOperation()
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DModuleTranslation.h156 llvm::LLVMContext &getLLVMContext() const { return llvmModule->getContext(); } in getLLVMContext() function

12