1 //===--------- llvm/AddressingMode.h - Addressing Mode -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 // This file contains addressing mode data structures which are shared
10 // between LSR and a number of places in the codegen.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_ADDRESSING_MODE_H
15 #define LLVM_ADDRESSING_MODE_H
17 #include "llvm/Support/DataTypes.h"
23 /// AddrMode - This represents an addressing mode of:
24 /// BaseGV + BaseOffs + BaseReg + Scale*ScaleReg
25 /// If BaseGV is null, there is no BaseGV.
26 /// If BaseOffs is zero, there is no base offset.
27 /// If HasBaseReg is false, there is no base register.
28 /// If Scale is zero, there is no ScaleReg. Scale of 1 indicates a reg with
36 AddrMode() : BaseGV(0), BaseOffs(0), HasBaseReg(false), Scale(0) {}
39 } // End llvm namespace