Home
last modified time | relevance | path

Searched refs:PHKind (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/mlir/lib/TableGen/
DFormat.cpp30 builtinSubstMap[PHKind::Builder] = subst.str(); in withBuilder()
35 builtinSubstMap[PHKind::Op] = subst.str(); in withOp()
40 builtinSubstMap[PHKind::Self] = subst.str(); in withSelf()
45 FmtContext::getSubstFor(FmtContext::PHKind placeholder) const { in getSubstFor()
46 if (placeholder == FmtContext::PHKind::None || in getSubstFor()
47 placeholder == FmtContext::PHKind::Custom) in getSubstFor()
62 FmtContext::PHKind FmtContext::getPlaceHolderKind(StringRef str) { in getPlaceHolderKind()
63 return StringSwitch<FmtContext::PHKind>(str) in getPlaceHolderKind()
64 .Case("_builder", FmtContext::PHKind::Builder) in getPlaceHolderKind()
65 .Case("_op", FmtContext::PHKind::Op) in getPlaceHolderKind()
[all …]
/external/llvm-project/mlir/include/mlir/TableGen/
DFormat.h43 enum class PHKind : char { enum
61 Optional<StringRef> getSubstFor(PHKind placeholder) const;
64 static PHKind getPlaceHolderKind(StringRef str);
67 struct PHKindInfo : DenseMapInfo<PHKind> {
70 static inline PHKind getEmptyKey() { in getEmptyKey()
71 return static_cast<PHKind>(CharInfo::getEmptyKey()); in getEmptyKey()
73 static inline PHKind getTombstoneKey() { in getTombstoneKey()
74 return static_cast<PHKind>(CharInfo::getTombstoneKey()); in getTombstoneKey()
76 static unsigned getHashValue(const PHKind &val) { in getHashValue()
80 static bool isEqual(const PHKind &lhs, const PHKind &rhs) { in isEqual()
[all …]