[llvm-commits] CVS: llvm/lib/CodeGen/IntrinsicLowering.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Nov 11 08:46:30 PST 2005
Changes in directory llvm/lib/CodeGen:
IntrinsicLowering.cpp updated: 1.35 -> 1.36
---
Log message:
continued readcyclecounter support
---
Diffs of the changes: (+6 -0)
IntrinsicLowering.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/CodeGen/IntrinsicLowering.cpp
diff -u llvm/lib/CodeGen/IntrinsicLowering.cpp:1.35 llvm/lib/CodeGen/IntrinsicLowering.cpp:1.36
--- llvm/lib/CodeGen/IntrinsicLowering.cpp:1.35 Sat Oct 22 23:37:20 2005
+++ llvm/lib/CodeGen/IntrinsicLowering.cpp Fri Nov 11 10:46:18 2005
@@ -262,6 +262,12 @@
case Intrinsic::pcmarker:
break; // Simply strip out pcmarker on unsupported architectures
+ case Intrinsic::readcyclecounter: {
+ std::cerr << "WARNING: this target does not support the llvm.readcyclecounter"
+ << " intrinsic. It is being lowered to a constant 0\n";
+ CI->replaceAllUsesWith(ConstantUInt::get(Type::ULongTy, 0));
+ break;
+ }
case Intrinsic::dbg_stoppoint:
case Intrinsic::dbg_region_start:
More information about the llvm-commits
mailing list