IR: Sort generic intrinsics before target specific ones
authorJustin Bogner <mail@justinbogner.com>
Fri, 15 Jul 2016 16:31:37 +0000 (16:31 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 15 Jul 2016 16:31:37 +0000 (16:31 +0000)
commit92a8c6112c6571112e8b622bfddc7e4d1685a6fe
treeb64e83abab5974bab6c86724769cebbc6f8cf2eb
parentf24f468e6de5119a934da72b50d39cab21c63de9
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
llvm/lib/IR/Function.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/CodeGenIntrinsics.h
llvm/utils/TableGen/CodeGenTarget.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp