| /openbsd-src/gnu/llvm/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() 83 Type *Type::getFloatingPointTy(LLVMContext &C, const fltSemantics &S) { in getFloatingPointTy() 224 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy() 225 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy() 226 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy() 227 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } in getBFloatTy() 228 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy() 229 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy() 230 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy() 231 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy() [all …]
|
| H A D | Attributes.cpp | 91 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 122 Attribute Attribute::get(LLVMContext &Context, StringRef Kind, StringRef Val) { in get() 145 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 167 Attribute Attribute::getWithAlignment(LLVMContext &Context, Align A) { in getWithAlignment() 172 Attribute Attribute::getWithStackAlignment(LLVMContext &Context, Align A) { in getWithStackAlignment() 177 Attribute Attribute::getWithDereferenceableBytes(LLVMContext &Context, in getWithDereferenceableBytes() 183 Attribute Attribute::getWithDereferenceableOrNullBytes(LLVMContext &Context, in getWithDereferenceableOrNullBytes() 189 Attribute Attribute::getWithByValType(LLVMContext &Context, Type *Ty) { in getWithByValType() 193 Attribute Attribute::getWithStructRetType(LLVMContext &Context, Type *Ty) { in getWithStructRetType() 197 Attribute Attribute::getWithByRefType(LLVMContext &Context, Type *Ty) { in getWithByRefType() [all …]
|
| H A D | ProfDataUtils.cpp | 92 return nullptr != I.getMetadata(LLVMContext::MD_prof); in hasProfMD() 100 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD() 109 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()
|
| H A D | DebugInfoMetadata.cpp | 44 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation() 66 DILocation *DILocation::getImpl(LLVMContext &Context, unsigned Line, in getImpl() 116 LLVMContext &C = LocA->getContext(); in getMergedLocation() 321 GenericDINode *GenericDINode::getImpl(LLVMContext &Context, unsigned Tag, in getImpl() 380 DISubrange::DISubrange(LLVMContext &C, StorageType Storage, in DISubrange() 383 DISubrange *DISubrange::getImpl(LLVMContext &Context, int64_t Count, int64_t Lo, in getImpl() 393 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl() 402 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl() 493 DIGenericSubrange::DIGenericSubrange(LLVMContext &C, StorageType Storage, in DIGenericSubrange() 498 DIGenericSubrange *DIGenericSubrange::getImpl(LLVMContext &Context, in getImpl() [all …]
|
| H A D | Metadata.cpp | 80 static Metadata *canonicalizeMetadataForValue(LLVMContext &Context, in canonicalizeMetadataForValue() 102 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 110 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() 118 LLVMContext &Context = getContext(); in handleChangedMetadata() 253 LLVMContext &Context = C.getType()->getContext(); in SalvageDebugInfo() 441 LLVMContext &Context = From->getType()->getContext(); in handleRAUW() 497 MDString *MDString::get(LLVMContext &Context, StringRef Str) { in get() 541 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() 921 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() 991 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Type.h | 31 class LLVMContext; variable 84 LLVMContext &Context; 94 explicit Type(LLVMContext &C, TypeID tid) in Type() 129 LLVMContext &getContext() const { return Context; } in getContext() 445 static Type *getPrimitiveType(LLVMContext &C, TypeID IDNumber); 450 static Type *getVoidTy(LLVMContext &C); 451 static Type *getLabelTy(LLVMContext &C); 452 static Type *getHalfTy(LLVMContext &C); 453 static Type *getBFloatTy(LLVMContext &C); 454 static Type *getFloatTy(LLVMContext &C); [all …]
|
| H A D | Attributes.h | 44 class LLVMContext; variable 126 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0); 127 static Attribute get(LLVMContext &Context, StringRef Kind, 129 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty); 133 static Attribute getWithAlignment(LLVMContext &Context, Align Alignment); 134 static Attribute getWithStackAlignment(LLVMContext &Context, Align Alignment); 135 static Attribute getWithDereferenceableBytes(LLVMContext &Context, 137 static Attribute getWithDereferenceableOrNullBytes(LLVMContext &Context, 140 LLVMContext &Context, unsigned ElemSizeArg, 142 static Attribute getWithVScaleRangeArgs(LLVMContext &Context, [all …]
|
| H A D | LLVMContext.h | 67 class LLVMContext { 70 LLVMContext(); 71 LLVMContext(LLVMContext &) = delete; 72 LLVMContext &operator=(const LLVMContext &) = delete; 73 ~LLVMContext(); 159 using YieldCallbackTy = void (*)(LLVMContext *Context, void *OpaqueHandle); 336 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef) in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument 340 inline LLVMContext **unwrap(LLVMContextRef* Tys) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 341 return reinterpret_cast<LLVMContext**>(Tys); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 344 inline LLVMContextRef *wrap(const LLVMContext **Tys) { in wrap() [all …]
|
| H A D | DebugInfoMetadata.h | 40 static CLASS *getDistinct(LLVMContext &Context, \ 44 static Temp##CLASS getTemporary(LLVMContext &Context, \ 50 static CLASS *get(LLVMContext &Context, DEFINE_MDNODE_GET_UNPACK(FORMAL)) { \ 53 static CLASS *getIfExists(LLVMContext &Context, \ 135 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, 153 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString() 233 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode() 244 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag, 251 static GenericDINode *getImpl(LLVMContext &Context, unsigned Tag, 306 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); 214 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() 235 static StructType *create(LLVMContext &Context, StringRef Name); 236 static StructType *create(LLVMContext &Context); 241 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements, 243 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 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()
|
| H A D | Metadata.h | 189 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 190 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 287 LLVMContext &Context; 292 ReplaceableMetadataImpl(LLVMContext &Context) : Context(Context) {} in ReplaceableMetadataImpl() 298 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() 843 PointerUnion<LLVMContext *, ReplaceableMetadataImpl *> Ptr; 846 ContextAndReplaceableUses(LLVMContext &Context) : Ptr(&Context) {} [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/CodeGen/ |
| H A D | CodeGenAction.h | 16 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);
|
| /openbsd-src/gnu/llvm/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() 386 EVT getRoundIntegerType(LLVMContext &Context) const { in getRoundIntegerType() 397 EVT getHalfSizedIntegerVT(LLVMContext &Context) const { in getHalfSizedIntegerVT() 411 EVT widenIntegerVectorElementType(LLVMContext &Context) const { in widenIntegerVectorElementType() 420 EVT getHalfNumVectorElementsVT(LLVMContext &Context) const { in getHalfNumVectorElementsVT() 430 EVT getDoubleNumVectorElementsVT(LLVMContext &Context) const { in getDoubleNumVectorElementsVT() 444 EVT getPow2VectorType(LLVMContext &Context) const { in getPow2VectorType() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IRReader/ |
| H A D | IRReader.h | 29 class LLVMContext; variable 38 SMDiagnostic &Err, LLVMContext &Context, 47 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 55 LLVMContext &Context, 63 LLVMContext &Context,
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/AsmParser/ |
| H A D | Parser.h | 24 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,
|
| /openbsd-src/gnu/llvm/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() 124 getModuleImpl(LLVMContext &Context, bool MaterializeAll, 142 getLazyModule(LLVMContext &Context, bool ShouldLazyLoadMetadata, 147 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,
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 152 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator() 153 LLVMContext::MD_annotation}); in ConstantFoldTerminator() 176 NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg, in ConstantFoldTerminator() 177 LLVMContext::MD_annotation}); in ConstantFoldTerminator() 230 SI->setMetadata(LLVMContext::MD_prof, in ConstantFoldTerminator() 320 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() 1176 if (TI->hasMetadata(LLVMContext::MD_loop)) in TryToSimplifyUncondBranchFromEmptyBlock() 1179 if (PredTI->hasMetadata(LLVMContext::MD_loop)) in TryToSimplifyUncondBranchFromEmptyBlock() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/AsmParser/ |
| H A D | Parser.cpp | 31 LLVMContext Context; 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()
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ScopedNoAliasAA.cpp | 83 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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/ |
| H A D | SampleProfReader.h | 274 LLVMContext &C); 280 LLVMContext &C); 283 void applyRemapping(LLVMContext &Ctx); 344 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, 453 create(const std::string Filename, LLVMContext &C, 461 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C, 513 LLVMContext &Ctx; 566 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderText() 586 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, 665 SampleProfileReaderRawBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/ |
| H A D | ReducerWorkItem.h | 16 class LLVMContext; variable 37 LLVMContext &getContext() { in getContext() 55 void readBitcode(MemoryBufferRef Data, LLVMContext &Ctx, StringRef ToolName); 66 parseReducerWorkItem(StringRef ToolName, StringRef Filename, LLVMContext &Ctxt,
|