Home
last modified time | relevance | path

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

12345678910>>...21

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DLLVMContext.cpp36 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext() function in LLVMContext
52 assert(DeoptEntry->second == LLVMContext::OB_deopt && in LLVMContext()
57 assert(FuncletEntry->second == LLVMContext::OB_funclet && in LLVMContext()
62 assert(GCTransitionEntry->second == LLVMContext::OB_gc_transition && in LLVMContext()
67 assert(CFGuardTargetEntry->second == LLVMContext::OB_cfguardtarget && in LLVMContext()
72 assert(PreallocatedEntry->second == LLVMContext::OB_preallocated && in LLVMContext()
77 assert(GCLiveEntry->second == LLVMContext::OB_gc_live && in LLVMContext()
83 assert(ClangAttachedCall->second == LLVMContext::OB_clang_arc_attachedcall && in LLVMContext()
100 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
102 void LLVMContext::addModule(Module *M) { in addModule()
[all …]
H A DType.cpp39 Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { in getPrimitiveType()
180 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
181 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy()
182 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy()
183 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } in getBFloatTy()
184 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy()
185 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy()
186 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy()
187 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy()
188 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty()
[all …]
H A DAttributes.cpp92 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get()
116 Attribute Attribute::get(LLVMContext &Context, StringRef Kind, StringRef Val) { in get()
139 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get()
160 Attribute Attribute::getWithAlignment(LLVMContext &Context, Align A) { in getWithAlignment()
165 Attribute Attribute::getWithStackAlignment(LLVMContext &Context, Align A) { in getWithStackAlignment()
170 Attribute Attribute::getWithDereferenceableBytes(LLVMContext &Context, in getWithDereferenceableBytes()
176 Attribute Attribute::getWithDereferenceableOrNullBytes(LLVMContext &Context, in getWithDereferenceableOrNullBytes()
182 Attribute Attribute::getWithByValType(LLVMContext &Context, Type *Ty) { in getWithByValType()
186 Attribute Attribute::getWithStructRetType(LLVMContext &Context, Type *Ty) { in getWithStructRetType()
190 Attribute Attribute::getWithByRefType(LLVMContext &Context, Type *Ty) { in getWithByRefType()
[all …]
H A DMetadata.cpp84 static Metadata *canonicalizeMetadataForValue(LLVMContext &Context, in canonicalizeMetadataForValue()
106 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get()
114 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists()
122 LLVMContext &Context = getContext(); in handleChangedMetadata()
411 LLVMContext &Context = From->getType()->getContext(); in handleRAUW()
467 MDString *MDString::get(LLVMContext &Context, StringRef Str) { in get()
519 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode()
825 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl()
894 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
1335 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
[all …]
H A DDebugInfoMetadata.cpp36 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation()
58 DILocation *DILocation::getImpl(LLVMContext &Context, unsigned Line, in getImpl()
284 GenericDINode *GenericDINode::getImpl(LLVMContext &Context, unsigned Tag, in getImpl()
342 DISubrange *DISubrange::getImpl(LLVMContext &Context, int64_t Count, int64_t Lo, in getImpl()
352 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl()
361 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl()
453 DIGenericSubrange *DIGenericSubrange::getImpl(LLVMContext &Context, in getImpl()
531 DIEnumerator *DIEnumerator::getImpl(LLVMContext &Context, const APInt &Value, in getImpl()
540 DIBasicType *DIBasicType::getImpl(LLVMContext &Context, unsigned Tag, in getImpl()
566 DIStringType *DIStringType::getImpl(LLVMContext &Context, unsigned Tag, in getImpl()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DType.h33 class LLVMContext; variable
83 LLVMContext &Context;
93 explicit Type(LLVMContext &C, TypeID tid) in Type()
128 LLVMContext &getContext() const { return Context; } in getContext()
405 static Type *getPrimitiveType(LLVMContext &C, TypeID IDNumber);
410 static Type *getVoidTy(LLVMContext &C);
411 static Type *getLabelTy(LLVMContext &C);
412 static Type *getHalfTy(LLVMContext &C);
413 static Type *getBFloatTy(LLVMContext &C);
414 static Type *getFloatTy(LLVMContext &C);
[all …]
H A DAttributes.h43 class LLVMContext; variable
95 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0);
96 static Attribute get(LLVMContext &Context, StringRef Kind,
98 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty);
102 static Attribute getWithAlignment(LLVMContext &Context, Align Alignment);
103 static Attribute getWithStackAlignment(LLVMContext &Context, Align Alignment);
104 static Attribute getWithDereferenceableBytes(LLVMContext &Context,
106 static Attribute getWithDereferenceableOrNullBytes(LLVMContext &Context,
108 static Attribute getWithAllocSizeArgs(LLVMContext &Context,
111 static Attribute getWithVScaleRangeArgs(LLVMContext &Context,
[all …]
H A DLLVMContext.h68 class LLVMContext {
71 LLVMContext();
72 LLVMContext(LLVMContext &) = delete;
73 LLVMContext &operator=(const LLVMContext &) = delete;
74 ~LLVMContext();
158 using YieldCallbackTy = void (*)(LLVMContext *Context, void *OpaqueHandle);
321 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument
325 inline LLVMContext **unwrap(LLVMContextRef* Tys) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
326 return reinterpret_cast<LLVMContext**>(Tys); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
329 inline LLVMContextRef *wrap(const LLVMContext **Tys) { in wrap()
[all …]
H A DDebugInfoMetadata.h43 static CLASS *getDistinct(LLVMContext &Context, \
47 static Temp##CLASS getTemporary(LLVMContext &Context, \
53 static CLASS *get(LLVMContext &Context, DEFINE_MDNODE_GET_UNPACK(FORMAL)) { \
56 static CLASS *getIfExists(LLVMContext &Context, \
132 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag,
150 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString()
229 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode()
240 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag,
247 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag,
300 DISubrange(LLVMContext &C, StorageType Storage, ArrayRef<Metadata *> Ops) in DISubrange()
[all …]
H A DMetadata.h190 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD);
191 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD);
288 LLVMContext &Context;
293 ReplaceableMetadataImpl(LLVMContext &Context) : Context(Context) {} in ReplaceableMetadataImpl()
299 LLVMContext &getContext() const { return Context; } in getContext()
386 LLVMContext &getContext() const { return V->getContext(); } in getContext()
623 static MDString *get(LLVMContext &Context, StringRef Str);
624 static MDString *get(LLVMContext &Context, const char *Str) { in get()
804 PointerUnion<LLVMContext *, ReplaceableMetadataImpl *> Ptr;
807 ContextAndReplaceableUses(LLVMContext &Context) : Ptr(&Context) {}
[all …]
H A DDerivedTypes.h34 class LLVMContext; variable
44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType()
63 static IntegerType *get(LLVMContext &C, unsigned NumBits);
213 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType()
234 static StructType *create(LLVMContext &Context, StringRef Name);
235 static StructType *create(LLVMContext &Context);
240 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements,
242 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements);
252 static StructType *get(LLVMContext &Context, ArrayRef<Type*> Elements,
256 static StructType *get(LLVMContext &Context, bool isPacked = false);
[all …]
H A DStatepoint.h150 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_transition)) in gc_transition_args_begin()
155 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_transition)) in gc_transition_args_end()
166 if (auto Opt = getOperandBundle(LLVMContext::OB_deopt)) in deopt_begin()
171 if (auto Opt = getOperandBundle(LLVMContext::OB_deopt)) in deopt_end()
184 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_args_begin()
191 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_args_end()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/CodeGen/
H A DCodeGenAction.h16 class LLVMContext; variable
51 llvm::LLVMContext *VMContext;
60 CodeGenAction(unsigned _Act, llvm::LLVMContext *_VMContext = nullptr);
79 llvm::LLVMContext *takeLLVMContext();
89 EmitAssemblyAction(llvm::LLVMContext *_VMContext = nullptr);
95 EmitBCAction(llvm::LLVMContext *_VMContext = nullptr);
101 EmitLLVMAction(llvm::LLVMContext *_VMContext = nullptr);
107 EmitLLVMOnlyAction(llvm::LLVMContext *_VMContext = nullptr);
113 EmitCodeGenOnlyAction(llvm::LLVMContext *_VMContext = nullptr);
119 EmitObjAction(llvm::LLVMContext *_VMContext = nullptr);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DValueTypes.h29 class LLVMContext; variable
65 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT()
74 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements,
84 static EVT getVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) { in getVectorVT()
373 EVT getRoundIntegerType(LLVMContext &Context) const { in getRoundIntegerType()
384 EVT getHalfSizedIntegerVT(LLVMContext &Context) const { in getHalfSizedIntegerVT()
398 EVT widenIntegerVectorElementType(LLVMContext &Context) const { in widenIntegerVectorElementType()
407 EVT getHalfNumVectorElementsVT(LLVMContext &Context) const { in getHalfNumVectorElementsVT()
417 EVT getDoubleNumVectorElementsVT(LLVMContext &Context) const { in getDoubleNumVectorElementsVT()
431 EVT getPow2VectorType(LLVMContext &Context) const { in getPow2VectorType()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/AsmParser/
H A DParser.h23 class LLVMContext; variable
46 LLVMContext &Context,
62 LLVMContext &Context,
86 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
92 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
114 MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context,
128 LLVMContext &Context,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Bitcode/
H A DBitcodeReader.h31 class LLVMContext; variable
41 std::error_code errorToErrorCodeAndEmitErrors(LLVMContext &Ctx, Error Err);
44 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors()
84 getModuleImpl(LLVMContext &Context, bool MaterializeAll,
101 Expected<std::unique_ptr<Module>> getLazyModule(LLVMContext &Context,
107 LLVMContext &Context, DataLayoutCallbackTy DataLayoutCallback =
144 getLazyBitcodeModule(MemoryBufferRef Buffer, LLVMContext &Context,
153 std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context,
172 MemoryBufferRef Buffer, LLVMContext &Context,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IRReader/
H A DIRReader.h27 class LLVMContext; variable
39 SMDiagnostic &Err, LLVMContext &Context,
48 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
56 MemoryBufferRef Buffer, SMDiagnostic &Err, LLVMContext &Context,
64 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DLocal.cpp154 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator()
155 LLVMContext::MD_annotation}); in ConstantFoldTerminator()
178 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator()
179 LLVMContext::MD_annotation}); in ConstantFoldTerminator()
216 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in ConstantFoldTerminator()
234 SI->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator()
311 MDNode *MD = SI->getMetadata(LLVMContext::MD_prof); in ConstantFoldTerminator()
319 NewBr->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator()
326 MDNode *MakeImplicitMD = SI->getMetadata(LLVMContext::MD_make_implicit); in ConstantFoldTerminator()
328 NewBr->setMetadata(LLVMContext::MD_make_implicit, MakeImplicitMD); in ConstantFoldTerminator()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ProfileData/
H A DSampleProfReader.h274 LLVMContext &C);
280 LLVMContext &C);
283 void applyRemapping(LLVMContext &Ctx);
344 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
426 create(const std::string Filename, LLVMContext &C,
432 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C,
480 LLVMContext &Ctx;
519 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderText()
534 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
612 SampleProfileReaderRawBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DParser.cpp33 LLVMContext Context; in parseAssemblyInto()
48 llvm::parseAssembly(MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, in parseAssembly()
62 LLVMContext &Context, in parseAssemblyFile()
77 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyWithIndex()
94 LLVMContext &Context, in parseAssemblyWithIndex()
103 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyFileWithIndex()
121 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyFileWithIndex()
129 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, in parseAssemblyFileWithIndexNoUpgradeDebugInfo()
138 LLVMContext &Context, in parseAssemblyString()
153 LLVMContext unusedContext; in parseSummaryIndexAssemblyInto()
/netbsd-src/external/apache2/llvm/dist/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,
217 LLVMContext &Context, bool ShouldBeLazy);
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DScopedNoAliasAA.cpp83 Call->getMetadata(LLVMContext::MD_noalias))) in getModRefInfo()
86 if (!mayAliasInScopes(Call->getMetadata(LLVMContext::MD_alias_scope), in getModRefInfo()
99 if (!mayAliasInScopes(Call1->getMetadata(LLVMContext::MD_alias_scope), in getModRefInfo()
100 Call2->getMetadata(LLVMContext::MD_noalias))) in getModRefInfo()
103 if (!mayAliasInScopes(Call2->getMetadata(LLVMContext::MD_alias_scope), in getModRefInfo()
104 Call1->getMetadata(LLVMContext::MD_noalias))) in getModRefInfo()
H A DTypeBasedAliasAnalysis.cpp413 if (const MDNode *M = Call->getMetadata(LLVMContext::MD_tbaa)) in getModRefBehavior()
433 if (const MDNode *M = Call->getMetadata(LLVMContext::MD_tbaa)) in getModRefInfo()
446 if (const MDNode *M1 = Call1->getMetadata(LLVMContext::MD_tbaa)) in getModRefInfo()
447 if (const MDNode *M2 = Call2->getMetadata(LLVMContext::MD_tbaa)) in getModRefInfo()
527 MDNode::getMostGenericTBAA(N.TBAA, getMetadata(LLVMContext::MD_tbaa)); in getAAMetadata()
530 N.Scope, getMetadata(LLVMContext::MD_alias_scope)); in getAAMetadata()
532 MDNode::intersect(N.NoAlias, getMetadata(LLVMContext::MD_noalias)); in getAAMetadata()
534 N.TBAA = getMetadata(LLVMContext::MD_tbaa); in getAAMetadata()
535 N.TBAAStruct = getMetadata(LLVMContext::MD_tbaa_struct); in getAAMetadata()
536 N.Scope = getMetadata(LLVMContext::MD_alias_scope); in getAAMetadata()
[all …]
H A DVectorUtils.cpp659 LLVMContext &Ctx = AccGroups1->getContext(); in uniteAccessGroups()
671 return Inst2->getMetadata(LLVMContext::MD_access_group); in intersectAccessGroups()
673 return Inst1->getMetadata(LLVMContext::MD_access_group); in intersectAccessGroups()
675 MDNode *MD1 = Inst1->getMetadata(LLVMContext::MD_access_group); in intersectAccessGroups()
676 MDNode *MD2 = Inst2->getMetadata(LLVMContext::MD_access_group); in intersectAccessGroups()
705 LLVMContext &Ctx = Inst1->getContext(); in intersectAccessGroups()
717 for (auto Kind : {LLVMContext::MD_tbaa, LLVMContext::MD_alias_scope, in propagateMetadata()
718 LLVMContext::MD_noalias, LLVMContext::MD_fpmath, in propagateMetadata()
719 LLVMContext::MD_nontemporal, LLVMContext::MD_invariant_load, in propagateMetadata()
720 LLVMContext::MD_access_group}) { in propagateMetadata()
[all …]

12345678910>>...21