Home
last modified time | relevance | path

Searched defs:ScalarTraits (Results 1 – 22 of 22) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/TextAPI/ELF/
DTBEHandler.cpp39 template <> struct ScalarTraits<ELFArchMapper> { struct
40 static void output(const ELFArchMapper &Value, void *, in output()
56 static StringRef input(StringRef Scalar, void *, ELFArchMapper &Value) { in input()
69 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
73 template <> struct ScalarTraits<VersionTuple> { struct
74 static void output(const VersionTuple &Value, void *, in output()
79 static StringRef input(StringRef Scalar, void *, VersionTuple &Value) { in input()
91 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
/external/llvm-project/clang-tools-extra/clang-doc/
DYAMLGenerator.cpp63 template <unsigned U> struct ScalarTraits<SmallString<U>> { struct
65 static void output(const SmallString<U> &S, void *, llvm::raw_ostream &OS) { in output()
70 static StringRef input(StringRef Scalar, void *, SmallString<U> &Value) { in input()
75 static QuotingType mustQuote(StringRef) { return QuotingType::Single; } in mustQuote()
78 template <> struct ScalarTraits<std::array<unsigned char, 20>> { struct
80 static void output(const std::array<unsigned char, 20> &S, void *, in output()
85 static StringRef input(StringRef Scalar, void *, in input()
93 static SymbolID StringToSymbol(llvm::StringRef Value) { in StringToSymbol()
100 static QuotingType mustQuote(StringRef) { return QuotingType::Single; } in mustQuote()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DBenchmarkResult.cpp194 template <> struct ScalarTraits<MCInst> { struct
196 static void output(const MCInst &Value, void *Ctx, raw_ostream &Out) { in output()
200 static StringRef input(StringRef Scalar, void *Ctx, MCInst &Value) { in input()
208 static QuotingType mustQuote(StringRef) { return QuotingType::Single; } in mustQuote()
210 static const bool flow = true;
250 template <> struct ScalarTraits<exegesis::RegisterValue> { struct
251 static constexpr const unsigned kRadix = 16;
252 static constexpr const bool kSigned = false;
254 static void output(const exegesis::RegisterValue &RV, void *Ctx, in output()
261 static StringRef input(StringRef String, void *Ctx, in input()
[all …]
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DMachONormalizedFileYAML.cpp241 template <> struct ScalarTraits<SectionAlignment> { struct
242 static void output(const SectionAlignment &value, void *ctxt, in output()
247 static StringRef input(StringRef scalar, void *ctxt, in input()
259 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
484 struct ScalarTraits<VMProtect> { struct
485 static void output(const VMProtect &value, void*, raw_ostream &out) { in output()
490 static StringRef input(StringRef scalar, void*, VMProtect &value) { in input()
524 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
693 struct ScalarTraits<PackedVersion> { struct
694 static void output(const PackedVersion &value, void*, raw_ostream &out) { in output()
[all …]
/external/llvm-project/llvm/lib/InterfaceStub/
DTBEHandler.cpp39 template <> struct ScalarTraits<ELFArchMapper> { struct
40 static void output(const ELFArchMapper &Value, void *, in output()
56 static StringRef input(StringRef Scalar, void *, ELFArchMapper &Value) { in input()
69 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
/external/llvm/tools/llvm-pdbdump/
DPdbYaml.cpp22 template <> struct ScalarTraits<llvm::pdb::PDB_UniqueId> { struct
23 static void output(const llvm::pdb::PDB_UniqueId &S, void *, in output()
28 static StringRef input(StringRef Scalar, void *Ctx, in input()
54 static bool mustQuote(StringRef Scalar) { return needsQuotes(Scalar); } in mustQuote()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DMinidumpYAML.cpp179 template <std::size_t N> struct ScalarTraits<FixedSizeHex<N>> { struct
180 static void output(const FixedSizeHex<N> &Fixed, void *, raw_ostream &OS) { in output()
184 static StringRef input(StringRef Scalar, void *, FixedSizeHex<N> &Fixed) { in input()
195 static QuotingType mustQuote(StringRef S) { return QuotingType::None; } in mustQuote()
216 template <std::size_t N> struct ScalarTraits<FixedSizeString<N>> { struct
217 static void output(const FixedSizeString<N> &Fixed, void *, raw_ostream &OS) { in output()
221 static StringRef input(StringRef Scalar, void *, FixedSizeString<N> &Fixed) { in input()
230 static QuotingType mustQuote(StringRef S) { return needsQuotes(S); } in mustQuote()
DELFYAML.cpp855 template <> struct ScalarTraits<StOtherPiece> { struct
856 static void output(const StOtherPiece &Val, void *, raw_ostream &Out) { in output()
859 static StringRef input(StringRef Scalar, void *, StOtherPiece &Val) { in input()
863 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
869 template <> struct ScalarTraits<ELFYAML::YAMLFlowString> { struct
870 static void output(const ELFYAML::YAMLFlowString &Val, void *, in output()
874 static StringRef input(StringRef Scalar, void *, in input()
879 static QuotingType mustQuote(StringRef S) { in mustQuote()
/external/llvm-project/llvm/lib/ObjectYAML/
DMinidumpYAML.cpp179 template <std::size_t N> struct ScalarTraits<FixedSizeHex<N>> { struct
180 static void output(const FixedSizeHex<N> &Fixed, void *, raw_ostream &OS) { in output()
184 static StringRef input(StringRef Scalar, void *, FixedSizeHex<N> &Fixed) { in input()
195 static QuotingType mustQuote(StringRef S) { return QuotingType::None; } in mustQuote()
216 template <std::size_t N> struct ScalarTraits<FixedSizeString<N>> { struct
217 static void output(const FixedSizeString<N> &Fixed, void *, raw_ostream &OS) { in output()
221 static StringRef input(StringRef Scalar, void *, FixedSizeString<N> &Fixed) { in input()
230 static QuotingType mustQuote(StringRef S) { return needsQuotes(S); } in mustQuote()
DELFYAML.cpp928 template <> struct ScalarTraits<StOtherPiece> { struct
929 static void output(const StOtherPiece &Val, void *, raw_ostream &Out) { in output()
932 static StringRef input(StringRef Scalar, void *, StOtherPiece &Val) { in input()
936 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
942 template <> struct ScalarTraits<ELFYAML::YAMLFlowString> { struct
943 static void output(const ELFYAML::YAMLFlowString &Val, void *, in output()
947 static StringRef input(StringRef Scalar, void *, in input()
952 static QuotingType mustQuote(StringRef S) { in mustQuote()
/external/llvm-project/lld/lib/ReaderWriter/YAML/
DReaderWriterYAML.cpp259 template <> struct ScalarTraits<RefKind> { struct
260 static void output(const RefKind &kind, void *ctxt, raw_ostream &out) { in output()
272 static StringRef input(StringRef scalar, void *ctxt, RefKind &kind) { in input()
282 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
461 template <> struct ScalarTraits<lld::DefinedAtom::Alignment> { struct
462 static void output(const lld::DefinedAtom::Alignment &value, void *ctxt, in output()
471 static StringRef input(StringRef scalar, void *ctxt, in input()
497 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
538 template <> struct ScalarTraits<ImplicitHex8> { struct
539 static void output(const ImplicitHex8 &val, void *, raw_ostream &out) { in output()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DYAMLTraits.h136 struct ScalarTraits { struct
/external/llvm/include/llvm/Support/
DYAMLTraits.h103 struct ScalarTraits { struct
/external/llvm/unittests/Support/
DYAMLIOTest.cpp825 struct ScalarTraits<MyCustomType> { struct
826 static void output(const MyCustomType &value, void* ctxt, llvm::raw_ostream &out) { in output()
829 static StringRef input(StringRef scalar, void* ctxt, MyCustomType &value) { in input()
848 static bool mustQuote(StringRef) { return true; } in mustQuote()
1038 struct ScalarTraits<MyNumber> { struct
1039 static void output(const MyNumber &value, void *, llvm::raw_ostream &out) { in output()
1043 static StringRef input(StringRef scalar, void *, MyNumber &value) { in input()
1051 static bool mustQuote(StringRef) { return false; } in mustQuote()
2209 struct ScalarTraits<FlowSeq> { struct
2210 static void output(const FlowSeq &value, void*, llvm::raw_ostream &out) { in output()
[all …]
/external/llvm-project/llvm/unittests/Support/
DYAMLIOTest.cpp1003 struct ScalarTraits<MyCustomType> { struct
1004 static void output(const MyCustomType &value, void* ctxt, llvm::raw_ostream &out) { in output()
1007 static StringRef input(StringRef scalar, void* ctxt, MyCustomType &value) { in input()
1026 static QuotingType mustQuote(StringRef) { return QuotingType::Single; } in mustQuote()
1217 struct ScalarTraits<MyNumber> { struct
1218 static void output(const MyNumber &value, void *, llvm::raw_ostream &out) { in output()
1222 static StringRef input(StringRef scalar, void *, MyNumber &value) { in input()
1230 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
1233 template <> struct ScalarTraits<MyString> { struct
1234 using Impl = ScalarTraits<StringRef>;
[all …]
/external/llvm-project/llvm/lib/TextAPI/MachO/
DTextStub.cpp376 template <> struct ScalarTraits<Target> { struct
377 static void output(const Target &Value, void *, raw_ostream &OS) { in output()
416 static StringRef input(StringRef Scalar, void *, Target &Value) { in input()
432 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TextAPI/MachO/
DTextStub.cpp376 template <> struct ScalarTraits<Target> { struct
377 static void output(const Target &Value, void *, raw_ostream &OS) { in output()
413 static StringRef input(StringRef Scalar, void *, Target &Value) { in input()
427 static QuotingType mustQuote(StringRef) { return QuotingType::None; } in mustQuote()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DYAMLTraits.h146 template <typename T, typename Enable = void> struct ScalarTraits { struct
/external/llvm-project/llvm/include/llvm/Support/
DYAMLTraits.h146 template <typename T, typename Enable = void> struct ScalarTraits { struct
/external/eigen/Eigen/src/Geometry/
DAlignedBox.h36 typedef NumTraits<Scalar> ScalarTraits; typedef
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderBuiltinPrecisionTests.cpp498 struct ScalarTraits struct
500 typedef Interval IVal;
502 static Interval doMakeIVal (const T& value) in doMakeIVal()
509 static Interval doUnion (const Interval& a, const Interval& b) in doUnion()
514 static bool doContains (const Interval& a, T value) in doContains()
519 static Interval doConvert (const FloatFormat& fmt, const IVal& ival) in doConvert()
524 static Interval doConvert (const FloatFormat& fmt, const IVal& ival, bool is16Bit) in doConvert()
530 static Interval doRound (const FloatFormat& fmt, T value) in doRound()
537 struct ScalarTraits<deUint16> struct
539 typedef Interval IVal;
[all …]
/external/deqp/modules/glshared/
DglsBuiltinPrecisionTests.cpp302 struct ScalarTraits struct
304 typedef Interval IVal;
306 static Interval doMakeIVal (const T& value) in doMakeIVal()
313 static Interval doUnion (const Interval& a, const Interval& b) in doUnion()
318 static bool doContains (const Interval& a, T value) in doContains()
323 static bool doContainsWarning(const Interval& a, T value) in doContainsWarning()
328 static Interval doConvert (const FloatFormat& fmt, const IVal& ival) in doConvert()
333 static Interval doRound (const FloatFormat& fmt, T value) in doRound()