diff options
author | Wang, Pengfei <pengfei.wang@intel.com> | 2020-01-17 10:32:30 +0800 |
---|---|---|
committer | Wang, Pengfei <pengfei.wang@intel.com> | 2020-01-27 10:38:05 +0800 |
commit | 17b8f96d65e462c80cb76648edcc69b5acfa10d1 (patch) | |
tree | 1f71843a3547869bcdd864e4176b36ae467962e6 /llvm/lib/IR/IntrinsicInst.cpp | |
parent | 9c24fca2a33fc0fd059e278bb95c84803dfff9ae (diff) | |
download | llvm-17b8f96d65e462c80cb76648edcc69b5acfa10d1.zip llvm-17b8f96d65e462c80cb76648edcc69b5acfa10d1.tar.gz llvm-17b8f96d65e462c80cb76648edcc69b5acfa10d1.tar.bz2 |
[FPEnv] Divide macro INSTRUCTION into INSTRUCTION and DAG_INSTRUCTION,
and macro FUNCTION likewise. NFCI.
Some functions like fmuladd don't really have a node, we should divide
the declaration form those have node to avoid introducing fake nodes.
Differential Revision: https://reviews.llvm.org/D72871
Diffstat (limited to 'llvm/lib/IR/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp index b23742b..78f98fd 100644 --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -149,7 +149,7 @@ bool ConstrainedFPIntrinsic::isUnaryOp() const { switch (getIntrinsicID()) { default: return false; -#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC, DAGN) \ +#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC) \ case Intrinsic::INTRINSIC: \ return NARG == 1; #include "llvm/IR/ConstrainedOps.def" @@ -160,7 +160,7 @@ bool ConstrainedFPIntrinsic::isTernaryOp() const { switch (getIntrinsicID()) { default: return false; -#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC, DAGN) \ +#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC) \ case Intrinsic::INTRINSIC: \ return NARG == 3; #include "llvm/IR/ConstrainedOps.def" @@ -169,7 +169,7 @@ bool ConstrainedFPIntrinsic::isTernaryOp() const { bool ConstrainedFPIntrinsic::classof(const IntrinsicInst *I) { switch (I->getIntrinsicID()) { -#define INSTRUCTION(NAME, NARGS, ROUND_MODE, INTRINSIC, DAGN) \ +#define INSTRUCTION(NAME, NARGS, ROUND_MODE, INTRINSIC) \ case Intrinsic::INTRINSIC: #include "llvm/IR/ConstrainedOps.def" return true; |