Home
last modified time | relevance | path

Searched refs:OffsetCache (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSourceMgr.cpp77 if (OffsetCache.isNull()) { in getLineNumber()
79 OffsetCache = Offsets; in getLineNumber()
89 Offsets = OffsetCache.get<std::vector<T> *>(); in getLineNumber()
105 OffsetCache(Other.OffsetCache), in SrcBuffer()
107 Other.OffsetCache = nullptr; in SrcBuffer()
111 if (!OffsetCache.isNull()) { in ~SrcBuffer()
112 if (OffsetCache.is<std::vector<uint8_t>*>()) in ~SrcBuffer()
113 delete OffsetCache.get<std::vector<uint8_t>*>(); in ~SrcBuffer()
114 else if (OffsetCache.is<std::vector<uint16_t>*>()) in ~SrcBuffer()
115 delete OffsetCache.get<std::vector<uint16_t>*>(); in ~SrcBuffer()
[all …]
/external/llvm-project/llvm/lib/Support/
DSourceMgr.cpp72 static std::vector<T> &GetOrCreateOffsetCache(void *&OffsetCache, in GetOrCreateOffsetCache() argument
74 if (OffsetCache) in GetOrCreateOffsetCache()
75 return *static_cast<std::vector<T> *>(OffsetCache); in GetOrCreateOffsetCache()
87 OffsetCache = Offsets; in GetOrCreateOffsetCache()
94 GetOrCreateOffsetCache<T>(OffsetCache, Buffer.get()); in getLineNumberSpecialized()
126 GetOrCreateOffsetCache<T>(OffsetCache, Buffer.get()); in getPointerForLineNumberSpecialized()
159 : Buffer(std::move(Other.Buffer)), OffsetCache(Other.OffsetCache), in SrcBuffer()
161 Other.OffsetCache = nullptr; in SrcBuffer()
165 if (OffsetCache) { in ~SrcBuffer()
168 delete static_cast<std::vector<uint8_t> *>(OffsetCache); in ~SrcBuffer()
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DSourceMgr.h60 mutable void *OffsetCache = nullptr; member
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DSourceMgr.h75 mutable VariableSizeOffsets OffsetCache; member