Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. //===--------- llvm/AddressingMode.h - Addressing Mode -------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // This file contains addressing mode data structures which are shared
  10. // between LSR and a number of places in the codegen.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_ADDRESSING_MODE_H
  14. #define LLVM_ADDRESSING_MODE_H
  15. #include "llvm/Support/DataTypes.h"
  16. namespace llvm {
  17. class GlobalValue;
  18. /// AddrMode - This represents an addressing mode of:
  19. /// BaseGV + BaseOffs + BaseReg + Scale*ScaleReg
  20. /// If BaseGV is null, there is no BaseGV.
  21. /// If BaseOffs is zero, there is no base offset.
  22. /// If HasBaseReg is false, there is no base register.
  23. /// If Scale is zero, there is no ScaleReg. Scale of 1 indicates a reg with
  24. /// no scale.
  25. ///
  26. struct AddrMode {
  27. GlobalValue *BaseGV;
  28. int64_t BaseOffs;
  29. bool HasBaseReg;
  30. int64_t Scale;
  31. AddrMode() : BaseGV(0), BaseOffs(0), HasBaseReg(false), Scale(0) {}
  32. };
  33. } // End llvm namespace
  34. #endif