Author: Fangrui Song Date: 2020-12-06T13:21:07-08:00 New Revision: a2f922140f5380571fb74179f2bf622b3b925697
URL: https://github.com/llvm/llvm-project/commit/a2f922140f5380571fb74179f2bf622b3b925697 DIFF: https://github.com/llvm/llvm-project/commit/a2f922140f5380571fb74179f2bf622b3b925697.diff LOG: [TableGen] Delete 11 unused declarations Added: Modified: clang/utils/TableGen/NeonEmitter.cpp clang/utils/TableGen/TableGenBackends.h llvm/include/llvm/TableGen/Record.h llvm/lib/TableGen/DetailedRecordsBackend.cpp llvm/lib/TableGen/JSONBackend.cpp llvm/utils/TableGen/CodeGenDAGPatterns.h llvm/utils/TableGen/GICombinerEmitter.cpp llvm/utils/TableGen/GlobalISelEmitter.cpp llvm/utils/TableGen/SubtargetEmitter.cpp Removed: ################################################################################ diff --git a/clang/utils/TableGen/NeonEmitter.cpp b/clang/utils/TableGen/NeonEmitter.cpp index d5bf59ef04ad..e8340d976f5e 100644 --- a/clang/utils/TableGen/NeonEmitter.cpp +++ b/clang/utils/TableGen/NeonEmitter.cpp @@ -580,21 +580,18 @@ class NeonEmitter { ClassMap[NoTestOpI] = ClassNoTest; } - // run - Emit arm_neon.h.inc + // Emit arm_neon.h.inc void run(raw_ostream &o); - // runFP16 - Emit arm_fp16.h.inc + // Emit arm_fp16.h.inc void runFP16(raw_ostream &o); - // runBF16 - Emit arm_bf16.h.inc + // Emit arm_bf16.h.inc void runBF16(raw_ostream &o); - // runHeader - Emit all the __builtin prototypes used in arm_neon.h, - // arm_fp16.h and arm_bf16.h + // Emit all the __builtin prototypes used in arm_neon.h, arm_fp16.h and + // arm_bf16.h void runHeader(raw_ostream &o); - - // runTests - Emit tests for all the Neon intrinsics. - void runTests(raw_ostream &o); }; } // end anonymous namespace diff --git a/clang/utils/TableGen/TableGenBackends.h b/clang/utils/TableGen/TableGenBackends.h index dc4476cdff44..33a06bfe4469 100644 --- a/clang/utils/TableGen/TableGenBackends.h +++ b/clang/utils/TableGen/TableGenBackends.h @@ -93,9 +93,6 @@ void EmitFP16(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); void EmitBF16(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); void EmitNeonSema(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); void EmitNeonTest(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); -void EmitNeon2(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); -void EmitNeonSema2(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); -void EmitNeonTest2(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); void EmitSveHeader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); void EmitSveBuiltins(llvm::RecordKeeper &Records, llvm::raw_ostream &OS); diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index 1c3ec5fb21f5..fe552331b385 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/include/llvm/TableGen/Record.h @@ -1608,7 +1608,6 @@ class Record { return IsAnonymous; } - void print(raw_ostream &OS) const; void dump() const; //===--------------------------------------------------------------------===// diff --git a/llvm/lib/TableGen/DetailedRecordsBackend.cpp b/llvm/lib/TableGen/DetailedRecordsBackend.cpp index 1b6b675081ed..2c3c3358b347 100644 --- a/llvm/lib/TableGen/DetailedRecordsBackend.cpp +++ b/llvm/lib/TableGen/DetailedRecordsBackend.cpp @@ -52,7 +52,6 @@ class DetailedRecordsEmitter { void printTemplateArgs(Record *Rec, raw_ostream &OS); void printSuperclasses(Record *Rec, raw_ostream &OS); void printFields(Record *Rec, raw_ostream &OS); - std::string formatLocation(const SMLoc Loc); }; // emitter class } // anonymous namespace diff --git a/llvm/lib/TableGen/JSONBackend.cpp b/llvm/lib/TableGen/JSONBackend.cpp index ea82934e5d3b..131650f987fb 100644 --- a/llvm/lib/TableGen/JSONBackend.cpp +++ b/llvm/lib/TableGen/JSONBackend.cpp @@ -29,7 +29,6 @@ class JSONEmitter { RecordKeeper &Records; json::Value translateInit(const Init &I); - json::Array listSuperclasses(const Record &R); public: JSONEmitter(RecordKeeper &R); diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index 7a0da531469e..c0c45a74de66 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -436,8 +436,6 @@ class ScopedName { unsigned getScope() const { return Scope; } const std::string &getIdentifier() const { return Identifier; } - std::string getFullName() const; - bool operator==(const ScopedName &o) const; bool operator!=(const ScopedName &o) const; }; diff --git a/llvm/utils/TableGen/GICombinerEmitter.cpp b/llvm/utils/TableGen/GICombinerEmitter.cpp index 5f091467636d..c3bbfd28f965 100644 --- a/llvm/utils/TableGen/GICombinerEmitter.cpp +++ b/llvm/utils/TableGen/GICombinerEmitter.cpp @@ -615,7 +615,6 @@ class GICombinerEmitter { /// response to the generated cl::opt. void emitNameMatcher(raw_ostream &OS) const; - void generateDeclarationsCodeForTree(raw_ostream &OS, const GIMatchTree &Tree) const; void generateCodeForTree(raw_ostream &OS, const GIMatchTree &Tree, StringRef Indent) const; }; diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp index 3a9d298ff478..07130e4e0ab7 100644 --- a/llvm/utils/TableGen/GlobalISelEmitter.cpp +++ b/llvm/utils/TableGen/GlobalISelEmitter.cpp @@ -1015,10 +1015,6 @@ template <class PredicateTy> class PredicateListMatcher { bool Optimized = false; public: - /// Construct a new predicate and add it to the matcher. - template <class Kind, class... Args> - Optional<Kind *> addPredicate(Args &&... args); - typename PredicatesTy::iterator predicates_begin() { return Predicates.begin(); } diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp index 4635dde159ca..df7faed8aea5 100644 --- a/llvm/utils/TableGen/SubtargetEmitter.cpp +++ b/llvm/utils/TableGen/SubtargetEmitter.cpp @@ -114,7 +114,6 @@ class SubtargetEmitter { SchedClassTables &SchedTables); void EmitSchedClassTables(SchedClassTables &SchedTables, raw_ostream &OS); void EmitProcessorModels(raw_ostream &OS); - void EmitProcessorLookup(raw_ostream &OS); void EmitSchedModelHelpers(const std::string &ClassName, raw_ostream &OS); void emitSchedModelHelpersImpl(raw_ostream &OS, bool OnlyExpandMCInstPredicates = false); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits