Home
last modified time | relevance | path

Searched refs:LLVMContext (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContext.cpp34 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext() function in LLVMContext
113 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
115 void LLVMContext::addModule(Module *M) { in addModule()
119 void LLVMContext::removeModule(Module *M) { in removeModule()
127 void LLVMContext::setDiagnosticHandlerCallBack( in setDiagnosticHandlerCallBack()
178 void LLVMContext::setMainRemarkStreamer( in setMainRemarkStreamer()
189 void LLVMContext::setLLVMRemarkStreamer( in setLLVMRemarkStreamer()
199 void *LLVMContext::getDiagnosticContext() const { in getDiagnosticContext()
209 void LLVMContext::yield() { in yield()
340 void LLVMContext::deleteGC(const Function &Fn) { in deleteGC()
[all …]
H A DType.cpp36 Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { in getPrimitiveType()
237 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
239 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy()
258 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy()
262 Type *Type::getWasm_ExternrefTy(LLVMContext &C) { in getWasm_ExternrefTy()
268 Type *Type::getWasm_FuncrefTy(LLVMContext &C) { in getWasm_FuncrefTy()
278 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get()
535 StructType *StructType::create(LLVMContext &Context) { in create()
755 PointerType::PointerType(LLVMContext &C, unsigned AddrSpace) in PointerType()
778 TargetExtType::TargetExtType(LLVMContext &C, StringRef Name, in TargetExtType()
[all …]
H A DProfDataUtils.cpp73 return nullptr != I.getMetadata(LLVMContext::MD_prof); in hasProfMD()
81 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD()
90 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in getBranchWeightMDNode()
131 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights()
143 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights()
184 return extractProfTotalWeight(I.getMetadata(LLVMContext::MD_prof), TotalVal); in extractProfTotalWeight()
190 I.setMetadata(LLVMContext::MD_prof, BranchWeights); in setBranchWeights()
H A DAttributes.cpp220 Attribute Attribute::getWithNoFPClass(LLVMContext &Context, in getWithNoFPClass()
592 bool Attribute::hasParentContext(LLVMContext &C) const { in hasParentContext()
720 AttributeSet AttributeSet::addAttribute(LLVMContext &C, in addAttribute()
735 AttributeSet AttributeSet::addAttributes(LLVMContext &C, in addAttributes()
748 AttributeSet AttributeSet::removeAttribute(LLVMContext &C, in removeAttribute()
911 AttributeSetNode *AttributeSetNode::get(LLVMContext &C, in get()
1133 AttributeList AttributeList::getImpl(LLVMContext &C, in getImpl()
1161 AttributeList::get(LLVMContext &C, in get()
1194 AttributeList::get(LLVMContext &C, in get()
1304 AttributeList AttributeList::get(LLVMContext &C, in get()
[all …]
H A DMetadata.cpp119 LLVMContext &Context = getContext(); in handleChangedMetadata()
1454 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1567 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1569 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl()
1632 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
1713 setMetadata(LLVMContext::MD_tbaa, N.TBAA); in setAAMetadata()
1758 addMetadata(LLVMContext::MD_type, in copyMetadata()
1790 LLVMContext::MD_type, in addTypeMetadata()
1819 setMetadata(LLVMContext::MD_dbg, SP); in setSubprogram()
1836 addMetadata(LLVMContext::MD_dbg, *GV); in addDebugInfo()
[all …]
H A DDebugInfoMetadata.cpp76 DILocation *DILocation::getImpl(LLVMContext &Context, unsigned Line, in getImpl()
124 LLVMContext &C = LocA->getContext(); in getMergedLocation()
447 DISubrange::DISubrange(LLVMContext &C, StorageType Storage, in DISubrange()
643 DIEnumerator::DIEnumerator(LLVMContext &C, StorageType Storage, in DIEnumerator()
872 DIFile::DIFile(LLVMContext &C, StorageType Storage, in DIFile()
903 DIFile *DIFile::getImpl(LLVMContext &Context, MDString *Filename, in getImpl()
917 DICompileUnit::DICompileUnit(LLVMContext &C, StorageType Storage, in DICompileUnit()
1114 LLVMContext &Context, Metadata *Scope, MDString *Name, in getImpl()
1226 DIModule *DIModule::getImpl(LLVMContext &Context, Metadata *File, in getImpl()
1355 DIExpression *DIExpression::getImpl(LLVMContext &Context, in getImpl()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.h42 class LLVMContext; variable
138 LLVMContext &Context, unsigned ElemSizeArg,
259 bool hasParentContext(LLVMContext &C) const;
392 bool hasParentContext(LLVMContext &C) const;
456 static AttributeList get(LLVMContext &C,
458 static AttributeList get(LLVMContext &C,
537 addFnAttribute(LLVMContext &C, StringRef Kind,
669 removeRetAttributes(LLVMContext &C,
901 bool hasParentContext(LLVMContext &C) const;
991 LLVMContext &Ctx;
[all …]
H A DType.h31 class LLVMContext; variable
84 LLVMContext &Context;
94 explicit Type(LLVMContext &C, TypeID tid) in Type()
446 static Type *getVoidTy(LLVMContext &C);
447 static Type *getLabelTy(LLVMContext &C);
448 static Type *getHalfTy(LLVMContext &C);
449 static Type *getBFloatTy(LLVMContext &C);
450 static Type *getFloatTy(LLVMContext &C);
451 static Type *getDoubleTy(LLVMContext &C);
454 static Type *getFP128Ty(LLVMContext &C);
[all …]
H A DLLVMContext.h67 class LLVMContext {
70 LLVMContext();
71 LLVMContext(const LLVMContext &) = delete;
72 LLVMContext &operator=(const LLVMContext &) = delete;
73 ~LLVMContext();
160 using YieldCallbackTy = void (*)(LLVMContext *Context, void *OpaqueHandle);
339 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument
343 inline LLVMContext **unwrap(LLVMContextRef* Tys) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
344 return reinterpret_cast<LLVMContext**>(Tys); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
347 inline LLVMContextRef *wrap(const LLVMContext **Tys) { in wrap()
[all …]
H A DDebugInfoMetadata.h312 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID()
330 static DIAssignID *getDistinct(LLVMContext &Context) { in getDistinct()
333 static TempDIAssignID getTemporary(LLVMContext &Context) { in getTemporary()
355 static DISubrange *getImpl(LLVMContext &Context, int64_t Count,
414 DIGenericSubrange(LLVMContext &C, StorageType Storage,
613 DIFile(LLVMContext &C, StorageType Storage,
820 DIBasicType(LLVMContext &C, StorageType Storage, unsigned Tag, in DIBasicType()
1598 LLVMContext &Ctx,
2238 DILexicalBlockFile(LLVMContext &C, StorageType Storage, in DILexicalBlockFile()
2672 static DIExpression *getImpl(LLVMContext &Context,
[all …]
H A DDerivedTypes.h34 class LLVMContext; variable
64 static IntegerType *get(LLVMContext &C, unsigned NumBits);
217 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType()
240 static StructType *create(LLVMContext &Context, StringRef Name);
241 static StructType *create(LLVMContext &Context);
270 LLVMContext &Ctx = elt1->getContext(); in get()
276 static StructType *getTypeByName(LLVMContext &C, StringRef Name);
647 explicit PointerType(LLVMContext &C, unsigned AddrSpace);
658 static PointerType *get(LLVMContext &C, unsigned AddressSpace);
668 static PointerType *getUnqual(LLVMContext &C) { in getUnqual()
[all …]
H A DStatepoint.h147 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_transition)) in gc_transition_args_begin()
152 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_transition)) in gc_transition_args_end()
163 if (auto Opt = getOperandBundle(LLVMContext::OB_deopt)) in deopt_begin()
168 if (auto Opt = getOperandBundle(LLVMContext::OB_deopt)) in deopt_end()
181 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_args_begin()
188 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_args_end()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenAction.h16 class LLVMContext; variable
51 llvm::LLVMContext *VMContext;
63 CodeGenAction(unsigned _Act, llvm::LLVMContext *_VMContext = nullptr);
82 llvm::LLVMContext *takeLLVMContext();
92 EmitAssemblyAction(llvm::LLVMContext *_VMContext = nullptr);
98 EmitBCAction(llvm::LLVMContext *_VMContext = nullptr);
104 EmitLLVMAction(llvm::LLVMContext *_VMContext = nullptr);
110 EmitLLVMOnlyAction(llvm::LLVMContext *_VMContext = nullptr);
116 EmitCodeGenOnlyAction(llvm::LLVMContext *_VMContext = nullptr);
122 EmitObjAction(llvm::LLVMContext *_VMContext = nullptr);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IRReader/
H A DIRReader.h27 class LLVMContext; variable
36 SMDiagnostic &Err, LLVMContext &Context,
45 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
53 LLVMContext &Context,
61 LLVMContext &Context,
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DParser.h24 class LLVMContext; variable
47 LLVMContext &Context,
63 LLVMContext &Context,
87 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
95 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
128 MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context,
144 LLVMContext &Context,
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DValueTypes.h28 class LLVMContext; variable
64 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT()
83 static EVT getVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) { in getVectorVT()
397 EVT getRoundIntegerType(LLVMContext &Context) const { in getRoundIntegerType()
408 EVT getHalfSizedIntegerVT(LLVMContext &Context) const { in getHalfSizedIntegerVT()
422 EVT widenIntegerVectorElementType(LLVMContext &Context) const { in widenIntegerVectorElementType()
431 EVT getHalfNumVectorElementsVT(LLVMContext &Context) const { in getHalfNumVectorElementsVT()
441 EVT getDoubleNumVectorElementsVT(LLVMContext &Context) const { in getDoubleNumVectorElementsVT()
455 EVT getPow2VectorType(LLVMContext &Context) const { in getPow2VectorType()
481 Type *getTypeForEVT(LLVMContext &Context) const;
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeReader.h32 class LLVMContext; variable
63 std::error_code errorToErrorCodeAndEmitErrors(LLVMContext &Ctx, Error Err);
66 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors()
125 getModuleImpl(LLVMContext &Context, bool MaterializeAll,
143 getLazyModule(LLVMContext &Context, bool ShouldLazyLoadMetadata,
148 parseModule(LLVMContext &Context, ParserCallbacks Callbacks = {});
185 getLazyBitcodeModule(MemoryBufferRef Buffer, LLVMContext &Context,
195 std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context,
215 parseBitcodeFile(MemoryBufferRef Buffer, LLVMContext &Context,
/freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/
H A DParser.cpp31 std::optional<LLVMContext> OptContext; in parseAssemblyInto()
46 llvm::parseAssembly(MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, in parseAssembly()
60 LLVMContext &Context, in parseAssemblyFile()
75 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyWithIndex()
92 LLVMContext &Context, in parseAssemblyWithIndex()
102 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyFileWithIndex()
120 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyFileWithIndex()
128 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, in parseAssemblyFileWithIndexNoUpgradeDebugInfo()
137 LLVMContext &Context, in parseAssemblyString()
152 LLVMContext unusedContext; in parseSummaryIndexAssemblyInto()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DScopedNoAliasAA.cpp82 Call->getMetadata(LLVMContext::MD_noalias))) in getModRefInfo()
85 if (!mayAliasInScopes(Call->getMetadata(LLVMContext::MD_alias_scope), in getModRefInfo()
98 if (!mayAliasInScopes(Call1->getMetadata(LLVMContext::MD_alias_scope), in getModRefInfo()
99 Call2->getMetadata(LLVMContext::MD_noalias))) in getModRefInfo()
102 if (!mayAliasInScopes(Call2->getMetadata(LLVMContext::MD_alias_scope), in getModRefInfo()
103 Call1->getMetadata(LLVMContext::MD_noalias))) in getModRefInfo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.h16 class LLVMContext; variable
38 LLVMContext &Ctx;
50 VPTypeAnalysis(LLVMContext &Ctx) : Ctx(Ctx) {} in VPTypeAnalysis()
56 LLVMContext &getContext() { return Ctx; } in getContext()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOModule.h47 std::unique_ptr<LLVMContext> OwnedContext;
98 createFromFile(LLVMContext &Context, StringRef path,
101 createFromOpenFile(LLVMContext &Context, int fd, StringRef path, size_t size,
104 createFromOpenFileSlice(LLVMContext &Context, int fd, StringRef path,
108 createFromBuffer(LLVMContext &Context, const void *mem, size_t length,
111 createInLocalContext(std::unique_ptr<LLVMContext> Context, const void *mem,
221 LLVMContext &Context, bool ShouldBeLazy);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DThreadSafeModule.h32 State(std::unique_ptr<LLVMContext> Ctx) : Ctx(std::move(Ctx)) {} in State()
34 std::unique_ptr<LLVMContext> Ctx;
53 ThreadSafeContext(std::unique_ptr<LLVMContext> NewCtx) in ThreadSafeContext()
61 LLVMContext *getContext() { return S ? S->Ctx.get() : nullptr; } in getContext()
65 const LLVMContext *getContext() const { return S ? S->Ctx.get() : nullptr; } in getContext()
104 ThreadSafeModule(std::unique_ptr<Module> M, std::unique_ptr<LLVMContext> Ctx) in ThreadSafeModule()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProfReader.h278 SampleProfileReader &Reader, LLVMContext &C);
284 LLVMContext &C);
287 void applyRemapping(LLVMContext &Ctx);
348 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
439 create(const std::string Filename, LLVMContext &C, vfs::FileSystem &FS,
447 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C, vfs::FileSystem &FS,
506 LLVMContext &Ctx;
559 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderText()
582 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
763 LLVMContext &C, SampleProfileFormat Format) in SampleProfileReaderExtBinaryBase()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp155 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator()
179 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator()
2912 II->setMetadata(LLVMContext::MD_prof, CI->getMetadata(LLVMContext::MD_prof)); in changeToInvokeAndSplitBasicBlock()
3213 case LLVMContext::MD_dbg: in combineMetadata()
3218 case LLVMContext::MD_tbaa: in combineMetadata()
3275 case LLVMContext::MD_prof: in combineMetadata()
3330 case LLVMContext::MD_dbg: in copyMetadataForLoad()
3331 case LLVMContext::MD_tbaa: in copyMetadataForLoad()
3332 case LLVMContext::MD_prof: in copyMetadataForLoad()
3350 case LLVMContext::MD_align: in copyMetadataForLoad()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILMetadata.cpp74 LLVMContext &Ctx = M.getContext(); in createShaderModelMD()
128 MDTuple *emitDXILEntryProps(uint64_t RawShaderFlag, LLVMContext &Ctx, in emitDXILEntryProps()
147 LLVMContext &Ctx) { in emitEntryPropsForEmptyEntry()
176 void appendNumThreads(std::vector<Metadata *> &MDVals, LLVMContext &Ctx) { in appendNumThreads()
188 uint64_t RawShaderFlag, LLVMContext &Ctx) { in appendShaderFlags()
195 void appendShaderKind(std::vector<Metadata *> &MDVals, LLVMContext &Ctx) { in appendShaderKind()
205 LLVMContext &Ctx;
235 LLVMContext &Ctx) { in emitEmptyEntryForLib()
246 LLVMContext &Ctx) { in emitDxilEntryPointTuple()

12345678910>>...23