Home
last modified time | relevance | path

Searched refs:hasVal (Results 1 – 5 of 5) sorted by relevance

/external/llvm/include/llvm/ADT/
DOptional.h31 bool hasVal; variable
35 Optional(NoneType) : hasVal(false) {} in Optional()
36 explicit Optional() : hasVal(false) {} in Optional()
37 Optional(const T &y) : hasVal(true) { in Optional()
40 Optional(const Optional &O) : hasVal(O.hasVal) { in Optional()
41 if (hasVal) in Optional()
45 Optional(T &&y) : hasVal(true) { in Optional()
48 Optional(Optional<T> &&O) : hasVal(O) { in Optional()
55 if (hasVal)
59 hasVal = true;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DOptional.h34 bool hasVal = false; member
38 OptionalStorage(const T &y) : hasVal(true) { new (storage.buffer) T(y); } in OptionalStorage()
39 OptionalStorage(const OptionalStorage &O) : hasVal(O.hasVal) { in OptionalStorage()
40 if (hasVal) in OptionalStorage()
43 OptionalStorage(T &&y) : hasVal(true) { in OptionalStorage()
46 OptionalStorage(OptionalStorage &&O) : hasVal(O.hasVal) { in OptionalStorage()
47 if (O.hasVal) { in OptionalStorage()
53 if (hasVal)
57 hasVal = true;
62 if (!O.hasVal)
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DOptional.h31 bool hasVal; variable
35 Optional(NoneType) : hasVal(false) {} in Optional()
36 explicit Optional() : hasVal(false) {} in Optional()
37 Optional(const T &y) : hasVal(true) { in Optional()
40 Optional(const Optional &O) : hasVal(O.hasVal) { in Optional()
41 if (hasVal) in Optional()
45 Optional(T &&y) : hasVal(true) { in Optional()
48 Optional(Optional<T> &&O) : hasVal(O) { in Optional()
55 if (hasVal)
59 hasVal = true;
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DOptional.h26 unsigned hasVal : 1; variable
28 explicit Optional() : x(), hasVal(false) {} in Optional()
29 Optional(const T &y) : x(y), hasVal(true) {} in Optional()
37 hasVal = true;
41 const T* getPointer() const { assert(hasVal); return &x; } in getPointer()
42 const T& getValue() const { assert(hasVal); return x; } in getValue()
44 operator bool() const { return hasVal; }
45 bool hasValue() const { return hasVal; } in hasValue()
47 const T& operator*() const { assert(hasVal); return x; }
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
DlldbDataFormatters.py99 hasVal = storage.GetChildMemberWithName('hasVal').GetValueAsUnsigned(failure)
100 if hasVal == failure:
103 if hasVal == 0: