[PATCH] D82388: move "basic" builtins to TableGen

2020-07-01 Thread Nathan Froyd via Phabricator via cfe-commits
froydnj added a comment. FWIW, an in-progress tree for the proposed move for all the architecture-specific builtins is: https://github.com/froydnj/llvm-project/tree/move-builtins-to-tablegen I don't know if the ARM/NEON/SVE builtins will be easily movable. It looks like they are separately ge

[PATCH] D82388: move "basic" builtins to TableGen

2020-06-29 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: llvm/include/llvm/TableGen/Record.h:1777 /// string manipulation. struct LessRecordByID { bool operator()(const Record *LHS, const Record *RHS) const { Here’s the sort predicate for it. Repository: rG LLVM

[PATCH] D82388: move "basic" builtins to TableGen

2020-06-29 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Every Record has an ID that is assigned in order. You can just sort the Records based on that in your emitter Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D82388/new/ https://reviews.llvm.org/D82388 ___