Home
last modified time | relevance | path

Searched defs:ValueUnion (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/llvm/utils/benchmark/src/
Dsysinfo.cc84 struct ValueUnion { struct
85 union DataT {
91 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;
94 size_t Size;
95 DataPtr Buff;
98 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() argument
100 explicit ValueUnion(size_t BuffSize) in ValueUnion() function
106 explicit operator bool() const { return bool(Buff); } in operator bool()
108 char* data() const { return Buff->bytes; } in data()
110 std::string GetAsString() const { return std::string(data()); } in GetAsString()
[all …]
/external/google-benchmark/src/
Dsysinfo.cc91 struct ValueUnion { struct
92 union DataT {
98 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;
101 size_t Size;
102 DataPtr Buff;
105 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() function
107 explicit ValueUnion(size_t BuffSize) in ValueUnion() function
113 explicit operator bool() const { return bool(Buff); } in operator bool()
115 char* data() const { return Buff->bytes; } in data()
117 std::string GetAsString() const { return std::string(data()); } in GetAsString()
[all …]
/external/libcxx/utils/google-benchmark/src/
Dsysinfo.cc86 struct ValueUnion { struct
87 union DataT {
93 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;
96 size_t Size;
97 DataPtr Buff;
100 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() function
102 explicit ValueUnion(size_t BuffSize) in ValueUnion() argument
108 explicit operator bool() const { return bool(Buff); } in operator bool()
110 char* data() const { return Buff->bytes; } in data()
112 std::string GetAsString() const { return std::string(data()); } in GetAsString()
[all …]
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dsysinfo.cc86 struct ValueUnion { struct
87 union DataT {
93 using DataPtr = std::unique_ptr<DataT, decltype(&std::free)>;
96 size_t Size;
97 DataPtr Buff;
100 ValueUnion() : Size(0), Buff(nullptr, &std::free) {} in ValueUnion() function
102 explicit ValueUnion(size_t BuffSize) in ValueUnion() function
108 explicit operator bool() const { return bool(Buff); } in operator bool()
110 char* data() const { return Buff->bytes; } in data()
112 std::string GetAsString() const { return std::string(data()); } in GetAsString()
[all …]
/external/llvm/include/llvm/IR/
DModuleSummaryIndex.h58 union ValueUnion { union
61 ValueUnion(GlobalValue::GUID Id) : Id(Id) {} in ValueUnion() function
62 ValueUnion(const Value *V) : V(V) {} in ValueUnion() function
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp3513 union ValueUnion { union
3526 ValueUnion (deInt8 v) : i8(v) {} in ValueUnion() function
3527 ValueUnion (deUint8 v) : u8(v) {} in ValueUnion() function
3528 ValueUnion (deInt16 v) : i16(v) {} in ValueUnion() function
3529 ValueUnion (deUint16 v) : u16(v) {} in ValueUnion() function
3530 ValueUnion (deInt32 v) : i32(v) {} in ValueUnion() function
3531 ValueUnion (deUint32 v) : u32(v) {} in ValueUnion() function
3532 ValueUnion (deInt64 v) : i64(v) {} in ValueUnion() function
3533 ValueUnion (deUint64 v) : u64(v) {} in ValueUnion() function
3534 ValueUnion (tcu::Float16 v) : f16(v) {} in ValueUnion() function
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DContext.h290 union ValueUnion union