/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | LLVMContext.cpp | 34 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext() function in LLVMContext 50 assert(DeoptEntry->second == LLVMContext::OB_deopt && in LLVMContext() 55 assert(FuncletEntry->second == LLVMContext::OB_funclet && in LLVMContext() 60 assert(GCTransitionEntry->second == LLVMContext::OB_gc_transition && in LLVMContext() 65 assert(CFGuardTargetEntry->second == LLVMContext::OB_cfguardtarget && in LLVMContext() 70 assert(PreallocatedEntry->second == LLVMContext::OB_preallocated && in LLVMContext() 75 assert(GCLiveEntry->second == LLVMContext::OB_gc_live && in LLVMContext() 81 assert(ClangAttachedCall->second == LLVMContext::OB_clang_arc_attachedcall && in LLVMContext() 86 assert(PtrauthEntry->second == LLVMContext::OB_ptrauth && in LLVMContext() 91 assert(KCFIEntry->second == LLVMContext::OB_kcfi && in LLVMContext() [all …]
|
H A D | Type.cpp | 36 Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { in getPrimitiveType() 93 Type *Type::getFloatingPointTy(LLVMContext &C, const fltSemantics &S) { in getFloatingPointTy() 237 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy() 238 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy() 239 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy() 240 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } in getBFloatTy() 241 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy() 242 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy() 243 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy() 244 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy() [all …]
|
H A D | ProfDataUtils.cpp | 95 return I.hasMetadata(LLVMContext::MD_prof); in hasProfMD() 107 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD() 112 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasCountTypeMD() 126 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightOrigin() 150 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in getBranchWeightMDNode() 183 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights() 195 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights() 236 return extractProfTotalWeight(I.getMetadata(LLVMContext::MD_prof), TotalVal); in extractProfTotalWeight() 243 I.setMetadata(LLVMContext::MD_prof, BranchWeights); in setBranchWeights() 248 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in scaleProfData() [all …]
|
H A D | Attributes.cpp | 94 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 125 Attribute Attribute::get(LLVMContext &Context, StringRef Kind, StringRef Val) { in get() 148 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 170 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 195 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 232 Attribute Attribute::getWithAlignment(LLVMContext &Context, Align A) { in getWithAlignment() 237 Attribute Attribute::getWithStackAlignment(LLVMContext &Context, Align A) { in getWithStackAlignment() 242 Attribute Attribute::getWithDereferenceableBytes(LLVMContext &Context, in getWithDereferenceableBytes() 248 Attribute Attribute::getWithDereferenceableOrNullBytes(LLVMContext &Context, in getWithDereferenceableOrNullBytes() 254 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() 544 LLVMContext &Context = From->getType()->getContext(); in handleRAUW() 600 MDString *MDString::get(LLVMContext &Context, StringRef Str) { in get() 644 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() 1024 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() 1094 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Type.h | 31 class LLVMContext; variable 83 /// This refers to the LLVMContext in which this type was uniqued. 84 LLVMContext &Context; 94 explicit Type(LLVMContext &C, TypeID tid) in Type() 128 /// Return the LLVMContext in which this type was uniqued. 129 LLVMContext &getContext() const { return Context; } in getContext() 441 static Type *getPrimitiveType(LLVMContext &C, TypeID IDNumber); 446 static Type *getVoidTy(LLVMContext &C); 447 static Type *getLabelTy(LLVMContext &C); 448 static Type *getHalfTy(LLVMContext [all...] |
H A D | Attributes.h | 44 class LLVMContext; variable 133 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0); 134 static Attribute get(LLVMContext &Context, StringRef Kind, 136 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty); 137 static Attribute get(LLVMContext &Context, AttrKind Kind, 139 static Attribute get(LLVMContext &Context, AttrKind Kind, 144 static Attribute getWithAlignment(LLVMContext &Context, Align Alignment); 145 static Attribute getWithStackAlignment(LLVMContext &Context, Align Alignment); 146 static Attribute getWithDereferenceableBytes(LLVMContext &Context, 148 static Attribute getWithDereferenceableOrNullBytes(LLVMContext &Context, [all …]
|
H A D | LLVMContext.h | 67 class LLVMContext { 70 LLVMContext(); 71 LLVMContext(const LLVMContext &) = delete; 72 LLVMContext &operator=(const LLVMContext &) = delete; 73 ~LLVMContext(); 164 using YieldCallbackTy = void (*)(LLVMContext *Context, void *OpaqueHandle); 359 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument 363 inline LLVMContext **unwrap(LLVMContextRef* Tys) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 364 return reinterpret_cast<LLVMContext**>(Tys); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 367 inline LLVMContextRef *wrap(const LLVMContext **Tys) { in wrap() [all …]
|
H A D | DebugInfoMetadata.h | 42 static CLASS *getDistinct(LLVMContext &Context, \ 46 static Temp##CLASS getTemporary(LLVMContext &Context, \ 52 static CLASS *get(LLVMContext &Context, DEFINE_MDNODE_GET_UNPACK(FORMAL)) { \ 55 static CLASS *getIfExists(LLVMContext &Context, \ 140 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, 158 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString() 240 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode() 251 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag, 258 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag, 313 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID() [all …]
|
H A D | DerivedTypes.h | 34 class LLVMContext; variable 44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() 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); 246 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements, 248 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements); 257 static StructType *get(LLVMContext &Context, ArrayRef<Type*> Elements, 261 static StructType *get(LLVMContext &Context, bool isPacked = false); [all …]
|
H A D | MemoryModelRelaxationAnnotations.h | 33 class LLVMContext; variable 64 static MDNode *combine(LLVMContext &Ctx, const MMRAMetadata &A, 71 static MDTuple *getTagMD(LLVMContext &Ctx, StringRef Prefix, 73 static MDTuple *getTagMD(LLVMContext &Ctx, const TagT &T) { in getTagMD() 79 static MDTuple *getMD(LLVMContext &Ctx, ArrayRef<TagT> Tags);
|
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_args_begin() 188 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_args_end()
|
/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/IRReader/ |
H A D | IRReader.h | 27 class LLVMContext; 36 SMDiagnostic &Err, LLVMContext &Context, 45 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 53 LLVMContext &Context, 61 LLVMContext &Context, 29 class LLVMContext; global() variable
|
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
H A D | Parser.h | 25 class LLVMContext; variable 48 LLVMContext &Context, 64 LLVMContext &Context, 88 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 96 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 129 MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, 145 LLVMContext &Context,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 28 class LLVMContext; variable 64 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() 73 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, 83 static EVT getVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) { in getVectorVT() 404 EVT getRoundIntegerType(LLVMContext &Context) const { in getRoundIntegerType() 415 EVT getHalfSizedIntegerVT(LLVMContext &Context) const { in getHalfSizedIntegerVT() 429 EVT widenIntegerVectorElementType(LLVMContext &Context) const { in widenIntegerVectorElementType() 438 EVT getHalfNumVectorElementsVT(LLVMContext &Context) const { in getHalfNumVectorElementsVT() 448 EVT getDoubleNumVectorElementsVT(LLVMContext &Context) const { in getDoubleNumVectorElementsVT() 462 EVT getPow2VectorType(LLVMContext &Context) const { in getPow2VectorType() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
H A D | BitcodeReader.h | 32 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/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
H A D | LTOModule.h | 47 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/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);
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScopedNoAliasAA.cpp | 39 #include "llvm/IR/LLVMContext.h" 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/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; 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/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | SampleProfReader.h | 278 LLVMContext &C); 284 LLVMContext &C); 287 void applyRemapping(LLVMContext &Ctx); 348 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, 439 create(StringRef 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, 682 SampleProfileReaderRawBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, [all …]
|
/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanAnalysis.h | 17 class LLVMContext; variable 45 LLVMContext &Ctx; 57 VPTypeAnalysis(Type *CanonicalIVTy, LLVMContext &Ctx) in VPTypeAnalysis() 64 LLVMContext &getContext() { return Ctx; } in getContext()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 156 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator() 157 LLVMContext::MD_annotation}); in ConstantFoldTerminator() 180 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator() 181 LLVMContext::MD_annotation}); in ConstantFoldTerminator() 322 NewBr->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator() 328 MDNode *MakeImplicitMD = SI->getMetadata(LLVMContext::MD_make_implicit); in ConstantFoldTerminator() 330 NewBr->setMetadata(LLVMContext::MD_make_implicit, MakeImplicitMD); in ConstantFoldTerminator() 1252 if (TI->hasMetadata(LLVMContext::MD_loop)) in TryToSimplifyUncondBranchFromEmptyBlock() 1255 if (PredTI->hasMetadata(LLVMContext::MD_loop)) in TryToSimplifyUncondBranchFromEmptyBlock() 1321 if (MDNode *LoopMD = TI->getMetadata(LLVMContext::MD_loop)) in TryToSimplifyUncondBranchFromEmptyBlock() [all …]
|