forked from OSchip/llvm-project
Add FSQRT, FSIN, FCOS nodes, patch contributed by Morten Ofstad
llvm-svn: 21605
This commit is contained in:
parent
16983ca865
commit
2f82d2d58a
|
@ -168,9 +168,9 @@ namespace ISD {
|
||||||
// FP_EXTEND - Extend a smaller FP type into a larger FP type.
|
// FP_EXTEND - Extend a smaller FP type into a larger FP type.
|
||||||
FP_EXTEND,
|
FP_EXTEND,
|
||||||
|
|
||||||
// FNEG, FABS - Perform unary floating point negation and absolute value
|
// FNEG, FABS, FSQRT, FSIN, FCOS - Perform unary floating point negation,
|
||||||
// operations.
|
// absolute value, square root, sine and cosine operations.
|
||||||
FNEG, FABS,
|
FNEG, FABS, FSQRT, FSIN, FCOS,
|
||||||
|
|
||||||
// Other operators. LOAD and STORE have token chains as their first
|
// Other operators. LOAD and STORE have token chains as their first
|
||||||
// operand, then the same operands as an LLVM load/store instruction.
|
// operand, then the same operands as an LLVM load/store instruction.
|
||||||
|
|
|
@ -1568,6 +1568,9 @@ const char *SDNode::getOperationName() const {
|
||||||
// Unary operators
|
// Unary operators
|
||||||
case ISD::FABS: return "fabs";
|
case ISD::FABS: return "fabs";
|
||||||
case ISD::FNEG: return "fneg";
|
case ISD::FNEG: return "fneg";
|
||||||
|
case ISD::FSQRT: return "fsqrt";
|
||||||
|
case ISD::FSIN: return "fsin";
|
||||||
|
case ISD::FCOS: return "fcos";
|
||||||
|
|
||||||
// Binary operators
|
// Binary operators
|
||||||
case ISD::ADD: return "add";
|
case ISD::ADD: return "add";
|
||||||
|
@ -1593,7 +1596,7 @@ const char *SDNode::getOperationName() const {
|
||||||
case ISD::SRA_PARTS: return "sra_parts";
|
case ISD::SRA_PARTS: return "sra_parts";
|
||||||
case ISD::SRL_PARTS: return "srl_parts";
|
case ISD::SRL_PARTS: return "srl_parts";
|
||||||
|
|
||||||
// Conversion operators.
|
// Conversion operators.
|
||||||
case ISD::SIGN_EXTEND: return "sign_extend";
|
case ISD::SIGN_EXTEND: return "sign_extend";
|
||||||
case ISD::ZERO_EXTEND: return "zero_extend";
|
case ISD::ZERO_EXTEND: return "zero_extend";
|
||||||
case ISD::SIGN_EXTEND_INREG: return "sign_extend_inreg";
|
case ISD::SIGN_EXTEND_INREG: return "sign_extend_inreg";
|
||||||
|
|
Loading…
Reference in New Issue