/llvm-project/llvm/lib/IR/ |
H A D | LLVMContext.cpp | 1 //===-- LLVMContext.cpp - Implement LLVMContext ---------------------------===// 9 // This file implements LLVMContext, as a wrapper around the opaque 14 #include "llvm/IR/LLVMContext.h" 36 case LLVMContext::OB_deopt: in LLVMContext() 38 case LLVMContext::OB_funclet: in LLVMContext() 40 case LLVMContext::OB_gc_transition: in LLVMContext() 42 case LLVMContext::OB_cfguardtarget: in LLVMContext() 44 case LLVMContext::OB_preallocated: in LLVMContext() 46 case LLVMContext in LLVMContext() 34 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { LLVMContext() function in LLVMContext [all...] |
H A D | Type.cpp | 23 #include "llvm/IR/LLVMContext.h" 39 Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { in getPrimitiveType() 130 Type *Type::getFloatingPointTy(LLVMContext &C, const fltSemantics &S) { in canLosslesslyBitCastTo() 271 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getWasm_FuncrefTy() 272 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getWasm_FuncrefTy() 273 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } 274 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } 275 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } 276 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } 277 Type *Type::getMetadataTy(LLVMContext [all...] |
H A D | ProfDataUtils.cpp | 18 #include "llvm/IR/LLVMContext.h" 92 return I.hasMetadata(LLVMContext::MD_prof); 104 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in isValueProfileMD() 109 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasBranchWeightMD() 123 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in hasValidBranchWeightMD() 147 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in getNumBranchWeights() 180 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); 192 auto *ProfileData = I.getMetadata(LLVMContext::MD_prof); in extractBranchWeights() 232 return extractProfTotalWeight(I.getMetadata(LLVMContext::MD_prof), TotalVal); in extractProfTotalWeight() 239 I.setMetadata(LLVMContext [all...] |
H A D | Attributes.cpp | 30 #include "llvm/IR/LLVMContext.h" 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() 219 // `ConstantRangeListAttributes`. LLVMContext destructor will call the 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 in getWithDereferenceableBytes() [all...] |
/llvm-project/llvm/include/llvm/IR/ |
H A D | Attributes.h | 44 class LLVMContext; variable 138 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0); 139 static Attribute get(LLVMContext &Context, StringRef Kind, 141 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty); 142 static Attribute get(LLVMContext &Context, AttrKind Kind, 144 static Attribute get(LLVMContext &Context, AttrKind Kind, 149 static Attribute getWithAlignment(LLVMContext &Context, Align Alignment); 150 static Attribute getWithStackAlignment(LLVMContext &Context, Align Alignment); 151 static Attribute getWithDereferenceableBytes(LLVMContext &Context, 153 static Attribute getWithDereferenceableOrNullBytes(LLVMContext [all...] |
H A D | Type.h | 31 class LLVMContext; variable 82 /// This refers to the LLVMContext in which this type was uniqued. 83 LLVMContext &Context; 93 explicit Type(LLVMContext &C, TypeID tid) 127 /// Return the LLVMContext in which this type was uniqued. 128 LLVMContext &getContext() const { return Context; } 440 static Type *getPrimitiveType(LLVMContext &C, TypeID IDNumber); 445 static Type *getVoidTy(LLVMContext &C); 446 static Type *getLabelTy(LLVMContext &C); 447 static Type *getHalfTy(LLVMContext [all...] |
H A D | LLVMContext.h | 1 //===- llvm/LLVMContext.h - Class for managing "global" state ---*- C++ -*-===// 9 // This file declares LLVMContext, a container of "global" state in LLVM, such 65 /// LLVMContext itself provides no locking guarantees, so you should be careful 67 class LLVMContext { 70 LLVMContext(); 71 LLVMContext(const LLVMContext &) = delete; 72 LLVMContext &operator=(const LLVMContext &) = delete; 73 ~LLVMContext(); 359 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext,LLVMContextRef) DEFINE_SIMPLE_CONVERSION_FUNCTIONS() argument [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 [all...] |
H A D | DerivedTypes.h | 34 class LLVMContext; variable 46 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() 66 static IntegerType *get(LLVMContext &C, unsigned NumBits); 206 /// uniqued. The names for identified structs are managed at the LLVMContext 208 /// a particular LLVMContext. Identified structs may also optionally be opaque 219 StructType(LLVMContext &C) : Type(C, StructTyID) {} 236 /// symbol table entry (maintained by LLVMContext) for the struct. 246 static StructType *create(LLVMContext &Context, StringRef Name); 247 static StructType *create(LLVMContext &Context); 252 static StructType *create(LLVMContext in create() [all...] |
/llvm-project/llvm/unittests/IR/ |
H A D | StructuralHashTest.cpp | 27 std::unique_ptr<Module> parseIR(LLVMContext &Context, const char *IR) { in parseIR() 36 LLVMContext Ctx; in TEST() 43 LLVMContext Ctx; in TEST() 57 LLVMContext Ctx; in TEST() 74 LLVMContext Ctx; in TEST() 83 LLVMContext Ctx; in TEST() 90 LLVMContext Ctx; in TEST() 97 LLVMContext Ctx; 105 LLVMContext Ctx; in TEST() 119 LLVMContext Ct in TEST() [all...] |
H A D | DebugInfoTest.cpp | 18 #include "llvm/IR/LLVMContext.h" 31 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) { in parseIR() 108 LLVMContext C; in TEST() 138 MDNode *LoopMD = I.getMetadata(LLVMContext::MD_loop); in TEST() 160 LLVMContext C; in TEST() 200 LLVMContext Ctx; in TEST() 242 LLVMContext C; in TEST() 295 LLVMContext C; in TEST() 356 LLVMContext Ctx; in TEST() 374 LLVMContext Ct in TEST() [all...] |
H A D | ModuleTest.cpp | 35 LLVMContext Context; in TEST() 55 LLVMContext Context; in TEST() 79 LLVMContext Context; in TEST() 92 LLVMContext Context; in TEST() 127 LLVMContext Context; in TEST() 164 LLVMContext Context; in TEST() 179 LLVMContext C; in TEST() 181 LLVMContext Context; in TEST() 219 LLVMContext C; in TEST() 221 LLVMContext Contex in TEST() [all...] |
/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);
|
/llvm-project/llvm/unittests/Analysis/ |
H A D | IRSimilarityIdentifierTest.cpp | 31 static std::unique_ptr<Module> makeLLVMModule(LLVMContext &Context, in makeLLVMModule() 65 LLVMContext Context; in TEST() 96 LLVMContext Context; in TEST() 124 LLVMContext Context; in TEST() 149 LLVMContext Context; in TEST() 176 LLVMContext Context; in TEST() 201 LLVMContext Context; in TEST() 227 LLVMContext Context; in TEST() 253 LLVMContext Context; in TEST() 279 LLVMContext Context; in TEST() [all …]
|
H A D | MemoryProfileInfoTest.cpp | 13 #include "llvm/IR/LLVMContext.h" 35 std::unique_ptr<Module> makeLLVMModule(LLVMContext &C, const char *IR) { in makeLLVMModule() 141 LLVMContext C; 156 LLVMContext C; in TEST_F() 185 EXPECT_FALSE(Call1->hasMetadata(LLVMContext::MD_memprof)); in TEST_F() 196 EXPECT_FALSE(Call2->hasMetadata(LLVMContext::MD_memprof)); in TEST_F() 207 EXPECT_FALSE(Call3->hasMetadata(LLVMContext::MD_memprof)); in TEST_F() 219 EXPECT_FALSE(Call4->hasMetadata(LLVMContext::MD_memprof)); in TEST_F() 271 LLVMContext C; in TEST_F() 295 EXPECT_TRUE(Call->hasMetadata(LLVMContext in TEST_F() [all...] |
/llvm-project/llvm/unittests/ExecutionEngine/Orc/ |
H A D | ThreadSafeModuleTest.cpp | 24 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 32 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 44 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 61 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 69 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 87 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 96 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 104 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() 112 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST()
|
/llvm-project/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/ |
H A D | LLVMIRToLLVMTranslation.cpp | 85 static ArrayRef<unsigned> getSupportedMetadataImpl(llvm::LLVMContext &context) { in setProfilingAttr() 87 llvm::LLVMContext::MD_prof, in setProfilingAttr() 88 llvm::LLVMContext::MD_tbaa, in setProfilingAttr() 89 llvm::LLVMContext::MD_access_group, in setProfilingAttr() 90 llvm::LLVMContext::MD_loop, in setProfilingAttr() 91 llvm::LLVMContext::MD_noalias, in setProfilingAttr() 92 llvm::LLVMContext::MD_alias_scope, in setProfilingAttr() 392 if (kind == llvm::LLVMContext::MD_prof) 394 if (kind == llvm::LLVMContext::MD_tbaa) 396 if (kind == llvm::LLVMContext [all...] |
/llvm-project/llvm/include/llvm/AsmParser/ |
H A D | Parser.h | 25 class LLVMContext; 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, 24 class LLVMContext; global() variable
|
/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 { 425 EVT getHalfSizedIntegerVT(LLVMContext &Context) const { in getHalfSizedIntegerVT() 439 EVT widenIntegerVectorElementType(LLVMContext &Context) const { in getHalfNumVectorElementsVT() 448 EVT getHalfNumVectorElementsVT(LLVMContext &Context) const { in getDoubleNumVectorElementsVT() 458 EVT getDoubleNumVectorElementsVT(LLVMContext &Context) const { in isPow2VectorType() 472 EVT getPow2VectorType(LLVMContext in getPow2VectorType() [all...] |
/llvm-project/llvm/include/llvm/IRReader/ |
H A D | IRReader.h | 27 class LLVMContext; variable 36 SMDiagnostic &Err, LLVMContext &Context, 45 getLazyIRFileModule(StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, 53 LLVMContext &Context, 61 LLVMContext &Context,
|
/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,
|
/llvm-project/llvm/unittests/FuzzMutate/ |
H A D | StrategiesTest.cpp | 42 Types.push_back([typeGetter, length](LLVMContext &C) { in createInjectorMutator() 67 LLVMContext &Context) { in parseAssembly() 81 LLVMContext Ctx; in IterateOnSource() 95 LLVMContext Ctx; in mutateAndVerifyModule() 114 LLVMContext Ctx; in TEST() 179 LLVMContext Ctx; in TEST() 203 LLVMContext Ctx; in checkModifyNoUnsignedAndNoSignedWrap() 248 LLVMContext Ctx; in TEST() 273 LLVMContext Ctx; in TEST() 298 LLVMContext Ctx; in TEST() [all …]
|
/llvm-project/llvm/unittests/Transforms/Utils/ |
H A D | BasicBlockUtilsTest.cpp | 31 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) { in parseIR() 47 LLVMContext C; in TEST() 73 LLVMContext C; in TEST() 112 LLVMContext C; in TEST() 149 LLVMContext C; in TEST() 221 LLVMContext C; in TEST() 307 LLVMContext C; in TEST() 342 LLVMContext C; in TEST() 372 LLVMContext C; in TEST() 396 LLVMContext C; in TEST() [all …]
|
H A D | ValueMapperTest.cpp | 14 #include "llvm/IR/LLVMContext.h" 23 LLVMContext Context; in TEST() 32 LLVMContext Context; in TEST() 68 LLVMContext Context; in TEST() 109 LLVMContext Context; in TEST() 117 LLVMContext Context; in TEST() 133 LLVMContext Context; in TEST() 148 LLVMContext Context; in TEST() 161 LLVMContext Context; in TEST() 174 LLVMContext in TEST() [all...] |
H A D | CallPromotionUtilsTest.cpp | 14 #include "llvm/IR/LLVMContext.h" 28 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) { in parseIR() 41 LLVMContext &Context = M.getContext(); in getVTableAddressPointOffset() 52 LLVMContext C; in TEST() 98 LLVMContext C; in TEST() 124 LLVMContext C; in TEST() 151 LLVMContext C; in TEST() 186 LLVMContext C; in TEST() 228 LLVMContext C; in TEST() 271 LLVMContext in TEST() [all...] |