[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)
Tom Eccles via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 29 06:55:03 PDT 2025
================
@@ -77,6 +77,19 @@ static std::string getIdentifierName(const Record *Rec, StringRef Prefix) {
return Prefix.str() + BaseRecord(Rec).getFormattedName();
}
+using RecordWithSpelling = std::pair<const Record *, Spelling::Value>;
+
+static std::vector<RecordWithSpelling>
+getSpellings(ArrayRef<const Record *> Records) {
----------------
tblah wrote:
Is it always safe to construct a `Clause` from a record which is a directive?
https://github.com/llvm/llvm-project/pull/141766
More information about the llvm-branch-commits
mailing list