[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp IntrinsicLowering.cpp Function.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Jun 10 20:14:02 PDT 2004
Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.106 -> 1.107
IntrinsicLowering.cpp updated: 1.13 -> 1.14
Function.cpp updated: 1.69 -> 1.70
---
Log message:
Add the isunordered intrinsic.
---
Diffs of the changes: (+11 -0)
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.106 llvm/lib/VMCore/Verifier.cpp:1.107
--- llvm/lib/VMCore/Verifier.cpp:1.106 Mon Jun 7 18:07:33 2004
+++ llvm/lib/VMCore/Verifier.cpp Thu Jun 10 20:08:18 2004
@@ -688,6 +688,8 @@
break;
}
+ case Intrinsic::isunordered: NumArgs = 2; break;
+
case Intrinsic::setjmp: NumArgs = 1; break;
case Intrinsic::longjmp: NumArgs = 2; break;
case Intrinsic::sigsetjmp: NumArgs = 2; break;
Index: llvm/lib/VMCore/IntrinsicLowering.cpp
diff -u llvm/lib/VMCore/IntrinsicLowering.cpp:1.13 llvm/lib/VMCore/IntrinsicLowering.cpp:1.14
--- llvm/lib/VMCore/IntrinsicLowering.cpp:1.13 Fri Jun 4 20:05:19 2004
+++ llvm/lib/VMCore/IntrinsicLowering.cpp Thu Jun 10 20:08:18 2004
@@ -191,6 +191,12 @@
(*(CI->op_begin()+1))->getType(), MemsetFCache);
break;
}
+ case Intrinsic::isunordered: {
+ static Function *IsunorderedFCache = 0;
+ ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(),
+ (*(CI->op_begin()+1))->getType(), IsunorderedFCache);
+ break;
+ }
}
assert(CI->use_empty() &&
Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.69 llvm/lib/VMCore/Function.cpp:1.70
--- llvm/lib/VMCore/Function.cpp:1.69 Sun May 23 16:16:51 2004
+++ llvm/lib/VMCore/Function.cpp Thu Jun 10 20:08:18 2004
@@ -222,6 +222,9 @@
if (getName() == "llvm.gcread") return Intrinsic::gcread;
if (getName() == "llvm.gcroot") return Intrinsic::gcroot;
break;
+ case 'i':
+ if (getName() == "llvm.isunordered") return Intrinsic::isunordered;
+ break;
case 'l':
if (getName() == "llvm.longjmp") return Intrinsic::longjmp;
break;
More information about the llvm-commits
mailing list