aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-07-15 16:31:37 +0000
committerJustin Bogner <mail@justinbogner.com>2016-07-15 16:31:37 +0000
commit92a8c6112c6571112e8b622bfddc7e4d1685a6fe (patch)
treeb64e83abab5974bab6c86724769cebbc6f8cf2eb /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parentf24f468e6de5119a934da72b50d39cab21c63de9 (diff)
downloadllvm-92a8c6112c6571112e8b622bfddc7e4d1685a6fe.zip
llvm-92a8c6112c6571112e8b622bfddc7e4d1685a6fe.tar.gz
llvm-92a8c6112c6571112e8b622bfddc7e4d1685a6fe.tar.bz2
IR: Sort generic intrinsics before target specific ones
This splits out the intrinsic table such that generic intrinsics come first and target specific intrinsics are grouped by target. From here we can find out which target an intrinsic is for or differentiate between generic and target intrinsics. The motivation here is to make it easier to move target specific intrinsic handling out of generic code. llvm-svn: 275575
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index c2bb55f..307a953 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -2392,8 +2392,8 @@ void TreePattern::dump() const { print(errs()); }
CodeGenDAGPatterns::CodeGenDAGPatterns(RecordKeeper &R) :
Records(R), Target(R) {
- Intrinsics = LoadIntrinsics(Records, false);
- TgtIntrinsics = LoadIntrinsics(Records, true);
+ Intrinsics = CodeGenIntrinsicTable(Records, false);
+ TgtIntrinsics = CodeGenIntrinsicTable(Records, true);
ParseNodeInfo();
ParseNodeTransforms();
ParseComplexPatterns();