[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaJITInfo.cpp AlphaCodeEmitter.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Aug 4 08:32:47 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaJITInfo.cpp updated: 1.6 -> 1.7
AlphaCodeEmitter.cpp updated: 1.5 -> 1.6
---
Log message:

No, IDEFs shouldn't be JITed

---
Diffs of the changes:  (+6 -3)

 AlphaCodeEmitter.cpp |    7 +++++--
 AlphaJITInfo.cpp     |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaJITInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaJITInfo.cpp:1.6 llvm/lib/Target/Alpha/AlphaJITInfo.cpp:1.7
--- llvm/lib/Target/Alpha/AlphaJITInfo.cpp:1.6	Sat Jul 30 13:33:25 2005
+++ llvm/lib/Target/Alpha/AlphaJITInfo.cpp	Thu Aug  4 10:32:36 2005
@@ -64,7 +64,7 @@
   for (int x = 1; x <= 8; ++x) {
     AtI[2*x - 1] = BUILD_SLLi(27,27,8);
     unsigned d = (Fn >> (64 - 8 * x)) & 0x00FF;
-    DEBUG(std::cerr << "outputing " << hex << d << dec << "\n");
+    //    DEBUG(std::cerr << "outputing " << hex << d << dec << "\n");
     AtI[2*x] = BUILD_ORi(27, 27, d);
   }
   AtI[17] = BUILD_JMP(31,27,0); //jump, preserving ra, and setting pv


Index: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff -u llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.5 llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.6
--- llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.5	Thu Jul 28 13:14:47 2005
+++ llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp	Thu Aug  4 10:32:36 2005
@@ -89,9 +89,11 @@
   for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
     unsigned* Location = (unsigned*)BasicBlockAddrs[BBRefs[i].first];
     unsigned* Ref = (unsigned*)BBRefs[i].second;
-    intptr_t BranchTargetDisp = (((unsigned char*)Location  - (unsigned char*)Ref) >> 2) - 1;
+    intptr_t BranchTargetDisp = 
+      (((unsigned char*)Location  - (unsigned char*)Ref) >> 2) - 1;
     DEBUG(std::cerr << "Fixup @ " << (void*)Ref << " to " << (void*)Location
-          << " Disp " << BranchTargetDisp << " using " <<  (BranchTargetDisp & ((1 << 22)-1)) << "\n");
+          << " Disp " << BranchTargetDisp 
+          << " using " <<  (BranchTargetDisp & ((1 << 22)-1)) << "\n");
     *Ref |= (BranchTargetDisp & ((1 << 21)-1));
   }
   BBRefs.clear();
@@ -115,6 +117,7 @@
     case Alpha::ALTENT:
     case Alpha::PCLABEL:
     case Alpha::MEMLABEL:
+    case Alpha::IDEF:
       break; //skip these
     }
   }






More information about the llvm-commits mailing list