diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-03-01 01:04:26 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-03-01 01:04:26 +0000 |
commit | c9bf74fdc543c2da90f334e0bf8e34b128c8a615 (patch) | |
tree | fcf7595ecd1b914f9b82c893135ec5445b250159 /lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp | |
parent | 5de568068963748c789a42777f1e7f9fade7403b (diff) | |
download | llvm-c9bf74fdc543c2da90f334e0bf8e34b128c8a615.tar.gz llvm-c9bf74fdc543c2da90f334e0bf8e34b128c8a615.tar.bz2 llvm-c9bf74fdc543c2da90f334e0bf8e34b128c8a615.tar.xz |
[Sparc] Emit 'restore' instead of 'restore %g0, %g0, %g0'. This improves the readability of the generated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp')
-rw-r--r-- | lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp b/lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp index 0e44b31ae3..239d4ef995 100644 --- a/lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp +++ b/lib/Target/Sparc/InstPrinter/SparcInstPrinter.cpp @@ -20,6 +20,14 @@ #include "llvm/Support/raw_ostream.h" using namespace llvm; +// The generated AsmMatcher SparcGenAsmWriter uses "Sparc" as the target +// namespace. But SPARC backend uses "SP" as its namespace. +namespace llvm { +namespace Sparc { + using namespace SP; +} +} + #define GET_INSTRUCTION_NAME #define PRINT_ALIAS_INSTR #include "SparcGenAsmWriter.inc" |