Home
last modified time | relevance | path

Searched refs:JITSymbolFlags (Results 1 – 25 of 67) sorted by relevance

123

/external/llvm/include/llvm/ExecutionEngine/
DJITSymbolFlags.h23 enum class JITSymbolFlags : char { enum
29 inline JITSymbolFlags operator|(JITSymbolFlags LHS, JITSymbolFlags RHS) {
30 typedef std::underlying_type<JITSymbolFlags>::type UT;
31 return static_cast<JITSymbolFlags>(
35 inline JITSymbolFlags& operator |=(JITSymbolFlags &LHS, JITSymbolFlags RHS) {
40 inline JITSymbolFlags operator&(JITSymbolFlags LHS, JITSymbolFlags RHS) {
41 typedef std::underlying_type<JITSymbolFlags>::type UT;
42 return static_cast<JITSymbolFlags>(
46 inline JITSymbolFlags& operator &=(JITSymbolFlags &LHS, JITSymbolFlags RHS) {
54 JITSymbolBase(JITSymbolFlags Flags) : Flags(Flags) {} in JITSymbolBase()
[all …]
DRTDyldMemoryManager.h103 JITSymbolFlags::Exported); in findSymbol()
127 JITSymbolFlags::Exported); in findSymbolInLogicalDylib()
DRuntimeDyld.h66 SymbolInfo(std::nullptr_t) : JITSymbolBase(JITSymbolFlags::None), Address(0) {} in SymbolInfo()
67 SymbolInfo(uint64_t Address, JITSymbolFlags Flags) in SymbolInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DJITSymbol.cpp20 JITSymbolFlags llvm::JITSymbolFlags::fromGlobalValue(const GlobalValue &GV) { in fromGlobalValue()
21 JITSymbolFlags Flags = JITSymbolFlags::None; in fromGlobalValue()
23 Flags |= JITSymbolFlags::Weak; in fromGlobalValue()
25 Flags |= JITSymbolFlags::Common; in fromGlobalValue()
27 Flags |= JITSymbolFlags::Exported; in fromGlobalValue()
31 JITSymbolFlags
32 llvm::JITSymbolFlags::fromObjectSymbol(const object::BasicSymbolRef &Symbol) { in fromObjectSymbol()
33 JITSymbolFlags Flags = JITSymbolFlags::None; in fromObjectSymbol()
35 Flags |= JITSymbolFlags::Weak; in fromObjectSymbol()
37 Flags |= JITSymbolFlags::Common; in fromObjectSymbol()
[all …]
DRuntimeDyldImpl.h225 SymbolTableEntry(unsigned SectionID, uint64_t Offset, JITSymbolFlags Flags) in SymbolTableEntry()
232 JITSymbolFlags getFlags() const { return Flags; } in getFlags()
237 JITSymbolFlags Flags = JITSymbolFlags::None;
373 virtual JITSymbolFlags getJITSymbolFlags(const BasicSymbolRef &Sym);
380 JITSymbolFlags Flags) const { in modifyAddressBasedOnFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/
DJITSymbol.h43 class JITSymbolFlags {
59 static JITSymbolFlags stripTransientFlags(JITSymbolFlags Orig) { in stripTransientFlags()
64 JITSymbolFlags() = default;
67 JITSymbolFlags(FlagNames Flags) : Flags(Flags) {} in JITSymbolFlags() function
71 JITSymbolFlags(FlagNames Flags, TargetFlagsType TargetFlags) in JITSymbolFlags() function
126 static JITSymbolFlags fromGlobalValue(const GlobalValue &GV);
130 static JITSymbolFlags fromObjectSymbol(const object::BasicSymbolRef &Symbol);
148 operator JITSymbolFlags::TargetFlagsType&() { return Flags; }
153 JITSymbolFlags::TargetFlagsType Flags = 0;
165 JITEvaluatedSymbol(JITTargetAddress Address, JITSymbolFlags Flags) in JITEvaluatedSymbol()
[all …]
DRTDyldMemoryManager.h102 return JITSymbol(getSymbolAddress(Name), JITSymbolFlags::Exported); in findSymbol()
126 JITSymbolFlags::Exported); in findSymbolInLogicalDylib()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/Orc/
DCoreAPIsTest.cpp177 BarSym.setFlags(static_cast<JITSymbolFlags::FlagNames>( in TEST_F()
178 JITSymbolFlags::Exported | JITSymbolFlags::Weak)); in TEST_F()
205 cantFail(V.define(symbolAliases({{Baz, {Foo, JITSymbolFlags::Exported}}, in TEST_F()
206 {Qux, {Bar, JITSymbolFlags::Weak}}}))); in TEST_F()
433 JITSymbolFlags WeakExported(JITSymbolFlags::Exported); in TEST_F()
434 WeakExported |= JITSymbolFlags::Weak; in TEST_F()
464 JITSymbolFlags WeakExported(JITSymbolFlags::Exported); in TEST_F()
465 WeakExported |= JITSymbolFlags::Weak; in TEST_F()
468 SymbolFlagsMap({{Foo, JITSymbolFlags::Exported}, {Bar, WeakExported}}), in TEST_F()
559 {{Foo, JITSymbolFlags::Weak}, {Bar, JITSymbolFlags::Weak}}), in TEST_F()
[all …]
DLegacyAPIInteropTest.cpp75 JITEvaluatedSymbol FooSym(0xdeadbeef, JITSymbolFlags::Exported); in TEST()
114 JITSymbolFlags FooFlags = JITSymbolFlags::Exported; in TEST()
118 JITSymbolFlags BarFlags = static_cast<JITSymbolFlags::FlagNames>( in TEST()
119 JITSymbolFlags::Exported | JITSymbolFlags::Weak); in TEST()
DOrcTestCommon.h62 JITEvaluatedSymbol(FooAddr, JITSymbolFlags::Exported);
64 JITEvaluatedSymbol(BarAddr, JITSymbolFlags::Exported);
66 JITEvaluatedSymbol(BazAddr, JITSymbolFlags::Exported);
68 JITEvaluatedSymbol(QuxAddr, JITSymbolFlags::Exported);
DCompileOnDemandLayerTest.cpp31 JITSymbolFlags Flags) override { in createStub()
57 return JITSymbol(1, JITSymbolFlags::Exported); in TEST()
DObjectTransformLayerTest.cpp84 MockSymbol = llvm::JITSymbol(122, llvm::JITSymbolFlags::None); in findSymbol()
85 return llvm::JITSymbol(122, llvm::JITSymbolFlags::None); in findSymbol()
105 MockSymbol = llvm::JITSymbol(122, llvm::JITSymbolFlags::None); in findSymbolIn()
106 return llvm::JITSymbol(122, llvm::JITSymbolFlags::None); in findSymbolIn()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/Orc/
DOrcRemoteTargetRPCAPI.h80 class RPCTypeName<JITSymbolFlags> {
86 class SerializationTraits<ChannelT, JITSymbolFlags> {
89 static Error serialize(ChannelT &C, const JITSymbolFlags &Flags) { in serialize()
90 return serializeSeq(C, static_cast<JITSymbolFlags::UnderlyingType>(Flags), in serialize()
94 static Error deserialize(ChannelT &C, JITSymbolFlags &Flags) { in deserialize()
95 JITSymbolFlags::UnderlyingType JITFlags; in deserialize()
96 JITSymbolFlags::TargetFlagsType TargetFlags; in deserialize()
99 Flags = JITSymbolFlags(static_cast<JITSymbolFlags::FlagNames>(JITFlags), in deserialize()
DIndirectionUtils.h176 using StubInitsMap = StringMap<std::pair<JITTargetAddress, JITSymbolFlags>>;
182 JITSymbolFlags StubFlags) = 0;
209 JITSymbolFlags StubFlags) override { in createStub()
283 JITSymbolFlags StubFlags) { in createStubInternal()
294 StringMap<std::pair<StubKey, JITSymbolFlags>> StubIndexes;
/external/llvm/include/llvm/ExecutionEngine/Orc/
DJITSymbol.h38 : JITSymbolBase(JITSymbolFlags::None), CachedAddr(0) {} in JITSymbol()
41 JITSymbol(TargetAddress Addr, JITSymbolFlags Flags) in JITSymbol()
53 JITSymbol(GetAddressFtor GetAddress, JITSymbolFlags Flags) in JITSymbol()
DIndirectionUtils.h210 typedef StringMap<std::pair<TargetAddress, JITSymbolFlags>> StubInitsMap;
216 JITSymbolFlags StubFlags) = 0;
243 JITSymbolFlags StubFlags) override { in createStub()
317 JITSymbolFlags StubFlags) { in createStubInternal()
328 StringMap<std::pair<StubKey, JITSymbolFlags>> StubIndexes;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Orc/
DCore.cpp32 raw_ostream &operator<<(raw_ostream &OS, const JITSymbolFlags &Flags) { in operator <<()
592 KV.second |= JITSymbolFlags::Materializing; in MaterializationResponsibility()
612 I->second &= ~JITSymbolFlags::Materializing; in resolve()
614 assert(I->second == (KV.second.getFlags() | JITSymbolFlags::Weak) && in resolve()
646 I->second |= JITSymbolFlags::Materializing; in defineMaterializing()
898 NewFlags |= JITSymbolFlags::Materializing; in defineMaterializing()
956 JITSymbolFlags ReplaceFlags = KV.second; in replace()
957 ReplaceFlags |= JITSymbolFlags::Lazy; in replace()
1049 assert((Sym.getFlags() & ~JITSymbolFlags::Weak) == in resolve()
1050 (JITSymbolFlags::stripTransientFlags(I->second.getFlags()) & in resolve()
[all …]
DCompileOnDemandLayer.cpp56 {Mangle(Aliasee->getName()), JITSymbolFlags::fromGlobalValue(*A)}); in extractAliases()
186 JITSymbolFlags::fromGlobalValue(*KV.second); in materialize()
246 std::map<SymbolStringPtr, std::pair<JITTargetAddress, JITSymbolFlags>> in emit()
280 auto Flags = JITSymbolFlags::fromGlobalValue(F); in emit()
281 Flags &= ~JITSymbolFlags::Weak; in emit()
DExecutionUtils.cpp202 JITSymbolFlags::Exported)}, in enable()
205 JITSymbolFlags::Exported)}}); in enable()
234 JITSymbolFlags::Exported); in operator ()()
DLayer.cpp34 SymbolFlags[MangledName] = JITSymbolFlags::fromGlobalValue(G); in IRMaterializationUnit()
89 SymbolFlags[InternedName] = JITSymbolFlags::fromObjectSymbol(Sym); in BasicObjectLayerMaterializationUnit()
/external/llvm/unittests/ExecutionEngine/Orc/
DCompileOnDemandLayerTest.cpp30 JITSymbolFlags Flags) override { in createStub()
56 return JITSymbol(1, JITSymbolFlags::Exported); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/include/
DKaleidoscopeJIT.h114 return JITSymbol(SymAddr, JITSymbolFlags::Exported); in findMangledSymbol()
123 return JITSymbol(SymAddr, JITSymbolFlags::Exported); in findMangledSymbol()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyld.cpp227 JITSymbolFlags RTDyldSymFlags = JITSymbolFlags::None; in loadObjectImpl()
229 RTDyldSymFlags |= JITSymbolFlags::Weak; in loadObjectImpl()
231 RTDyldSymFlags |= JITSymbolFlags::Exported; in loadObjectImpl()
632 JITSymbolFlags RTDyldSymFlags = JITSymbolFlags::None; in emitCommonSymbols()
634 RTDyldSymFlags |= JITSymbolFlags::Weak; in emitCommonSymbols()
636 RTDyldSymFlags |= JITSymbolFlags::Exported; in emitCommonSymbols()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
DKaleidoscopeJIT.h117 return RuntimeDyld::SymbolInfo(SymAddr, JITSymbolFlags::Exported); in addModule()
146 JITSymbolFlags::Exported)) in addFunctionAST()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
DKaleidoscopeJIT.h104 return JITSymbol(SymAddr, JITSymbolFlags::Exported); in KaleidoscopeJIT()
186 mangle(SharedFnAST->getName()), CCAddr, JITSymbolFlags::Exported)) in addFunctionAST()

123