diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-23 01:39:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-23 01:39:09 +0000 |
commit | 829680048cdfea7498587a03f815915f1c0e1965 (patch) | |
tree | a5ae44d3ab61b49e86bfddcca506dce93584c987 /include | |
parent | 9799de910e97879bf9f30f359551071a94d61570 (diff) | |
download | llvm-829680048cdfea7498587a03f815915f1c0e1965.tar.gz llvm-829680048cdfea7498587a03f815915f1c0e1965.tar.bz2 llvm-829680048cdfea7498587a03f815915f1c0e1965.tar.xz |
MC: Add TargetAsmBackend::RelaxInstruction callback, and custom X86 implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmBackend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h index bb501cc522..1c55393018 100644 --- a/include/llvm/Target/TargetAsmBackend.h +++ b/include/llvm/Target/TargetAsmBackend.h @@ -15,6 +15,8 @@ namespace llvm { class MCAsmFixup; class MCDataFragment; +class MCInst; +class MCInstFragment; class MCObjectWriter; class MCSection; class Target; @@ -95,6 +97,11 @@ public: /// fixup kind as appropriate. virtual void ApplyFixup(const MCAsmFixup &Fixup, MCDataFragment &Fragment, uint64_t Value) const = 0; + + /// RelaxInstruction - Relax the instruction in the given fragment to the next + /// wider instruction. + virtual void RelaxInstruction(const MCInstFragment *IF, + MCInst &Res) const = 0; }; } // End llvm namespace |