| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | LLVMContext.cpp | 36 case LLVMContext::OB_deopt: in knownBundleName() 38 case LLVMContext::OB_funclet: in knownBundleName() 40 case LLVMContext::OB_gc_transition: in knownBundleName() 42 case LLVMContext::OB_cfguardtarget: in knownBundleName() 44 case LLVMContext::OB_preallocated: in knownBundleName() 46 case LLVMContext::OB_gc_live: in knownBundleName() 48 case LLVMContext::OB_clang_arc_attachedcall: in knownBundleName() 50 case LLVMContext::OB_ptrauth: in knownBundleName() 52 case LLVMContext::OB_kcfi: in knownBundleName() 54 case LLVMContext::OB_convergencectrl: in knownBundleName() [all …]
|
| H A D | ProfDataUtils.cpp | 100 return I.hasMetadata(LLVMContext::MD_prof); in hasProfMD() 112 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD() 117 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasCountTypeMD() 131 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightOrigin() 156 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in getBranchWeightMDNode() 189 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights() 201 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights() 242 return extractProfTotalWeight(I.getMetadata(LLVMContext::MD_prof), TotalVal); in extractProfTotalWeight() 248 LLVMContext::MD_prof, in setExplicitlyUnknownBranchWeights() 260 auto *MD = I.getMetadata(LLVMContext::MD_prof); in hasExplicitlyUnknownBranchWeights() [all …]
|
| H A D | Type.cpp | 39 Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { in getPrimitiveType() 126 Type *Type::getFloatingPointTy(LLVMContext &C, const fltSemantics &S) { in getFloatingPointTy() 281 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy() 282 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy() 283 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy() 284 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } in getBFloatTy() 285 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy() 286 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy() 287 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy() 288 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy() [all …]
|
| H A D | Attributes.cpp | 95 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 126 Attribute Attribute::get(LLVMContext &Context, StringRef Kind, StringRef Val) { in get() 149 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 171 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 197 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 234 Attribute Attribute::getWithAlignment(LLVMContext &Context, Align A) { in getWithAlignment() 239 Attribute Attribute::getWithStackAlignment(LLVMContext &Context, Align A) { in getWithStackAlignment() 244 Attribute Attribute::getWithDereferenceableBytes(LLVMContext &Context, in getWithDereferenceableBytes() 250 Attribute Attribute::getWithDereferenceableOrNullBytes(LLVMContext &Context, in getWithDereferenceableOrNullBytes() 256 Attribute Attribute::getWithByValType(LLVMContext &Context, Type *Ty) { in getWithByValType() [all …]
|
| H A D | Metadata.cpp | 81 static Metadata *canonicalizeMetadataForValue(LLVMContext &Context, in canonicalizeMetadataForValue() 103 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 111 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() 119 LLVMContext &Context = getContext(); in handleChangedMetadata() 336 LLVMContext &Context = C.getType()->getContext(); in SalvageDebugInfo() 551 LLVMContext &Context = From->getType()->getContext(); in handleRAUW() 607 MDString *MDString::get(LLVMContext &Context, StringRef Str) { in get() 651 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() 1031 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() 1101 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Attributes.h | 45 class LLVMContext; variable 140 LLVM_ABI static Attribute get(LLVMContext &Context, AttrKind Kind, 142 LLVM_ABI static Attribute get(LLVMContext &Context, StringRef Kind, 144 LLVM_ABI static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty); 145 LLVM_ABI static Attribute get(LLVMContext &Context, AttrKind Kind, 147 LLVM_ABI static Attribute get(LLVMContext &Context, AttrKind Kind, 152 LLVM_ABI static Attribute getWithAlignment(LLVMContext &Context, 154 LLVM_ABI static Attribute getWithStackAlignment(LLVMContext &Context, 156 LLVM_ABI static Attribute getWithDereferenceableBytes(LLVMContext &Context, 159 getWithDereferenceableOrNullBytes(LLVMContext &Context, uint64_t Bytes); [all …]
|
| H A D | Type.h | 31 class LLVMContext; variable 83 LLVMContext &Context; 93 explicit Type(LLVMContext &C, TypeID tid) in Type() 128 LLVMContext &getContext() const { return Context; } in getContext() 434 LLVM_ABI static Type *getPrimitiveType(LLVMContext &C, TypeID IDNumber); 439 LLVM_ABI static Type *getVoidTy(LLVMContext &C); 440 LLVM_ABI static Type *getLabelTy(LLVMContext &C); 441 LLVM_ABI static Type *getHalfTy(LLVMContext &C); 442 LLVM_ABI static Type *getBFloatTy(LLVMContext &C); 443 LLVM_ABI static Type *getFloatTy(LLVMContext &C); [all …]
|
| H A D | LLVMContext.h | 68 class LLVMContext { 71 LLVM_ABI LLVMContext(); 72 LLVMContext(const LLVMContext &) = delete; 73 LLVMContext &operator=(const LLVMContext &) = delete; 74 LLVM_ABI ~LLVMContext(); 170 using YieldCallbackTy = void (*)(LLVMContext *Context, void *OpaqueHandle); 365 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument 369 inline LLVMContext **unwrap(LLVMContextRef* Tys) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 370 return reinterpret_cast<LLVMContext**>(Tys); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 373 inline LLVMContextRef *wrap(const LLVMContext **Tys) { in wrap() [all …]
|
| H A D | DebugInfoMetadata.h | 43 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, \ 141 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, 159 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString() 243 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode() 254 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag, 261 LLVM_ABI static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag, 318 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID() [all …]
|
| H A D | MemoryModelRelaxationAnnotations.h | 34 class LLVMContext; variable 65 LLVM_ABI static MDNode *combine(LLVMContext &Ctx, const MMRAMetadata &A, 72 LLVM_ABI static MDTuple *getTagMD(LLVMContext &Ctx, StringRef Prefix, 74 static MDTuple *getTagMD(LLVMContext &Ctx, const TagT &T) { in getTagMD() 80 LLVM_ABI static MDTuple *getMD(LLVMContext &Ctx, ArrayRef<TagT> Tags);
|
| H A D | DerivedTypes.h | 34 class LLVMContext; variable 46 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() 66 LLVM_ABI static IntegerType *get(LLVMContext &C, unsigned NumBits); 219 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() 246 LLVM_ABI static StructType *create(LLVMContext &Context, StringRef Name); 247 LLVM_ABI static StructType *create(LLVMContext &Context); 252 LLVM_ABI static StructType *create(LLVMContext &Context, 255 LLVM_ABI static StructType *create(LLVMContext &Context, 266 get(LLVMContext &Context, ArrayRef<Type *> Elements, bool isPacked = false); 269 LLVM_ABI static StructType *get(LLVMContext &Context, bool isPacked = false); [all …]
|
| H A D | Statepoint.h | 147 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_live_begin() 188 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_live_end()
|
| H A D | Metadata.h | 146 LLVMContext::MD_range, LLVMContext::MD_nonnull, LLVMContext::MD_align}; 196 LLVM_ABI static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 197 LLVM_ABI static MetadataAsValue *getIfExists(LLVMContext &Context, 396 LLVMContext &Context; 401 ReplaceableMetadataImpl(LLVMContext &Context) : Context(Context) {} in ReplaceableMetadataImpl() 407 LLVMContext &getContext() const { return Context; } in getContext() 499 LLVMContext &getContext() const { return V->getContext(); } in getContext() 732 LLVM_ABI static MDString *get(LLVMContext &Context, StringRef Str); 733 static MDString *get(LLVMContext &Context, const char *Str) { in get() 969 PointerUnion<LLVMContext *, ReplaceableMetadataImpl *> Ptr; [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | CodeGenAction.h | 16 class LLVMContext; variable 51 llvm::LLVMContext *VMContext; 65 CodeGenAction(unsigned _Act, llvm::LLVMContext *_VMContext = nullptr); 84 llvm::LLVMContext *takeLLVMContext(); 94 EmitAssemblyAction(llvm::LLVMContext *_VMContext = nullptr); 100 EmitBCAction(llvm::LLVMContext *_VMContext = nullptr); 106 EmitLLVMAction(llvm::LLVMContext *_VMContext = nullptr); 112 EmitLLVMOnlyAction(llvm::LLVMContext *_VMContext = nullptr); 118 EmitCodeGenOnlyAction(llvm::LLVMContext *_VMContext = nullptr); 124 EmitObjAction(llvm::LLVMContext *_VMContext = nullptr);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | ThreadSafeModule.h | 32 State(std::unique_ptr<LLVMContext> Ctx) : Ctx(std::move(Ctx)) {} in State() 34 std::unique_ptr<LLVMContext> Ctx; 43 ThreadSafeContext(std::unique_ptr<LLVMContext> NewCtx) in ThreadSafeContext() 54 return F((LLVMContext *)nullptr); in decltype() 60 return F(const_cast<const LLVMContext *>(TmpS->Ctx.get())); in decltype() 62 return F((const LLVMContext *)nullptr); in decltype() 85 TSCtx.withContextDo([this](LLVMContext *Ctx) { M = nullptr; }); 94 ThreadSafeModule(std::unique_ptr<Module> M, std::unique_ptr<LLVMContext> Ctx) in ThreadSafeModule() 104 TSCtx.withContextDo([this](LLVMContext *Ctx) { M = nullptr; }); in ~ThreadSafeModule() 114 return TSCtx.withContextDo([&](LLVMContext *) { in decltype() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IRReader/ |
| H A D | IRReader.h | 28 class LLVMContext; variable 38 LLVMContext &Context, bool ShouldLazyLoadMetadata = false); 46 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 55 LLVMContext &Context, 64 LLVMContext &Context,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ValueTypes.h | 28 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() 414 EVT getRoundIntegerType(LLVMContext &Context) const { in getRoundIntegerType() 425 EVT getHalfSizedIntegerVT(LLVMContext &Context) const { in getHalfSizedIntegerVT() 439 EVT widenIntegerVectorElementType(LLVMContext &Context) const { in widenIntegerVectorElementType() 448 EVT getHalfNumVectorElementsVT(LLVMContext &Context) const { in getHalfNumVectorElementsVT() 458 EVT getDoubleNumVectorElementsVT(LLVMContext &Context) const { in getDoubleNumVectorElementsVT() 472 EVT getPow2VectorType(LLVMContext &Context) const { in getPow2VectorType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | Parser.h | 26 class LLVMContext; variable 49 parseAssemblyFile(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 65 LLVMContext &Context, SlotMapping *Slots = nullptr); 88 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 96 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 129 MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, 145 LLVMContext &Context, SlotMapping *Slots = nullptr);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeReader.h | 33 class LLVMContext; variable 64 LLVM_ABI std::error_code errorToErrorCodeAndEmitErrors(LLVMContext &Ctx, 68 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors() 127 getModuleImpl(LLVMContext &Context, bool MaterializeAll, 145 getLazyModule(LLVMContext &Context, bool ShouldLazyLoadMetadata, 150 parseModule(LLVMContext &Context, ParserCallbacks Callbacks = {}); 188 getLazyBitcodeModule(MemoryBufferRef Buffer, LLVMContext &Context, 198 std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context, 220 parseBitcodeFile(MemoryBufferRef Buffer, LLVMContext &Context,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
| H A D | XtensaConstantPoolValue.h | 28 class LLVMContext; variable 60 LLVMContext &C, unsigned id, XtensaCP::XtensaCPKind Kind, 163 LLVMContext &C, const char *S, unsigned Id, bool PrivLinkage, 168 Create(LLVMContext &C, const char *S, unsigned ID, bool PrivLinkage, 200 XtensaConstantPoolMBB(LLVMContext &C, const MachineBasicBlock *M, 204 static XtensaConstantPoolMBB *Create(LLVMContext &C, 234 XtensaConstantPoolJumpTable(LLVMContext &C, unsigned Idx); 237 static XtensaConstantPoolJumpTable *Create(LLVMContext &C, unsigned Idx);
|
| H A D | XtensaConstantPoolValue.cpp | 31 LLVMContext &C, unsigned ID, XtensaCP::XtensaCPKind Kind, in XtensaConstantPoolValue() 113 LLVMContext &C, const char *Str, unsigned ID, bool PrivLinkage, in XtensaConstantPoolSymbol() 119 XtensaConstantPoolSymbol::Create(LLVMContext &C, const char *Str, unsigned ID, in Create() 148 XtensaConstantPoolMBB::XtensaConstantPoolMBB(LLVMContext &C, in XtensaConstantPoolMBB() 153 XtensaConstantPoolMBB *XtensaConstantPoolMBB::Create(LLVMContext &C, in Create() 180 XtensaConstantPoolJumpTable::XtensaConstantPoolJumpTable(LLVMContext &C, in XtensaConstantPoolJumpTable() 184 XtensaConstantPoolJumpTable *XtensaConstantPoolJumpTable::Create(LLVMContext &C, in Create()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVBuiltins.h | 59 unsigned ArgIdx, LLVMContext &Ctx); 61 const StringRef DemangledCall, LLVMContext &Ctx); 62 Type *parseBuiltinCallArgumentType(StringRef TypeStr, LLVMContext &Ctx); 72 LLVMContext &Context);
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ScopedNoAliasAA.cpp | 82 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/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | LTOModule.h | 48 std::unique_ptr<LLVMContext> OwnedContext; 99 createFromFile(LLVMContext &Context, StringRef path, 102 createFromOpenFile(LLVMContext &Context, int fd, StringRef path, size_t size, 105 createFromOpenFileSlice(LLVMContext &Context, int fd, StringRef path, 109 createFromBuffer(LLVMContext &Context, const void *mem, size_t length, 112 createInLocalContext(std::unique_ptr<LLVMContext> Context, const void *mem, 229 LLVMContext &Context, bool ShouldBeLazy);
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | Parser.cpp | 32 std::optional<LLVMContext> OptContext; in parseAssemblyInto() 47 llvm::parseAssembly(MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, in parseAssembly() 61 LLVMContext &Context, in parseAssemblyFile() 76 LLVMContext &Context, SlotMapping *Slots, in parseAssemblyWithIndex() 93 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()
|