diff options
| author | Jim Grosbach <grosbach@apple.com> | 2012-03-05 19:33:20 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2012-03-05 19:33:20 +0000 |
| commit | c6449b636f4984be88f128d0375c056ad05e7e8f (patch) | |
| tree | f068034f4b7a57d03478e309ee26ad324741d252 /lib/Target/PTX/InstPrinter | |
| parent | c27faccb3cf67e469f4217e98c20ef9ff2b95241 (diff) | |
| download | external_llvm-c6449b636f4984be88f128d0375c056ad05e7e8f.zip external_llvm-c6449b636f4984be88f128d0375c056ad05e7e8f.tar.gz external_llvm-c6449b636f4984be88f128d0375c056ad05e7e8f.tar.bz2 | |
Make MCRegisterInfo available to the the MCInstPrinter.
Used to allow context sensitive printing of super-register or sub-register
references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PTX/InstPrinter')
| -rw-r--r-- | lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp | 3 | ||||
| -rw-r--r-- | lib/Target/PTX/InstPrinter/PTXInstPrinter.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp b/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp index 815c503..ec7e2a7 100644 --- a/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp +++ b/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp @@ -27,8 +27,9 @@ using namespace llvm; #include "PTXGenAsmWriter.inc" PTXInstPrinter::PTXInstPrinter(const MCAsmInfo &MAI, + const MCRegisterInfo &MRI, const MCSubtargetInfo &STI) : - MCInstPrinter(MAI) { + MCInstPrinter(MAI, MRI) { // Initialize the set of available features. setAvailableFeatures(STI.getFeatureBits()); } diff --git a/lib/Target/PTX/InstPrinter/PTXInstPrinter.h b/lib/Target/PTX/InstPrinter/PTXInstPrinter.h index 8c74097..eef6101 100644 --- a/lib/Target/PTX/InstPrinter/PTXInstPrinter.h +++ b/lib/Target/PTX/InstPrinter/PTXInstPrinter.h @@ -23,7 +23,8 @@ class MCOperand; class PTXInstPrinter : public MCInstPrinter { public: - PTXInstPrinter(const MCAsmInfo &MAI, const MCSubtargetInfo &STI); + PTXInstPrinter(const MCAsmInfo &MAI, const MCRegisterInfo &MRI, + const MCSubtargetInfo &STI); virtual void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot); virtual StringRef getOpcodeName(unsigned Opcode) const; |
