mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Refactor the AddrMode class out of TLI to its own header file.
This class is used by LSR and a number of places in the codegen. This is the first step in de-coupling LSR from TLI, and creating a new interface in between them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#ifndef LLVM_TRANSFORMS_UTILS_ADDRMODEMATCHER_H
|
||||
#define LLVM_TRANSFORMS_UTILS_ADDRMODEMATCHER_H
|
||||
|
||||
#include "llvm/AddressingMode.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
|
||||
@ -33,7 +34,7 @@ class raw_ostream;
|
||||
|
||||
/// ExtAddrMode - This is an extended version of TargetLowering::AddrMode
|
||||
/// which holds actual Value*'s for register values.
|
||||
struct ExtAddrMode : public TargetLowering::AddrMode {
|
||||
struct ExtAddrMode : public AddrMode {
|
||||
Value *BaseReg;
|
||||
Value *ScaledReg;
|
||||
ExtAddrMode() : BaseReg(0), ScaledReg(0) {}
|
||||
|
Reference in New Issue
Block a user