[llvm-commits] CVS: llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp

Anand Shukla ashukla at cs.uiuc.edu
Thu Jul 10 13:59:34 PDT 2003


Changes in directory llvm/lib/Reoptimizer/TraceCache:

InstrUtils.cpp updated: 1.10 -> 1.11

---
Log message:

Some cleanup, and some additions for new trace framework

---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp
diff -u llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp:1.10 llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp:1.11
--- llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp:1.10	Sat May 31 21:32:49 2003
+++ llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp	Thu Jul 10 13:57:33 2003
@@ -211,4 +211,14 @@
   //mask with 2^32-1-2^25-2^26-2^27-2^28
   return (br1 & 3791650815U)|(cond);
 }
+
+bool isIndirectCall(unsigned instr){
+  return ((instr & 0xfff80000) == 0x9fc00000);
+}
+
+bool isReturn(unsigned int inst){
+  return (((inst & 0xc1ffffff) == 0x81cfe008) || 
+	  ((inst & 0xffffffff) == 0x81c7e008) ||
+	  ((inst & 0xffffffff) == 0x81c3e008));
+}
 #endif





More information about the llvm-commits mailing list