2004-08-16 03:09:52 +02:00
|
|
|
//===- CodeGenRegisters.h - Register and RegisterClass Info -----*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines structures to encapsulate information gleaned from the
|
|
|
|
// target register and register class definitions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CODEGEN_REGISTERS_H
|
|
|
|
#define CODEGEN_REGISTERS_H
|
|
|
|
|
|
|
|
#include <string>
|
2004-08-21 06:05:00 +02:00
|
|
|
#include <vector>
|
2004-08-16 03:09:52 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class Record;
|
|
|
|
|
|
|
|
/// CodeGenRegister - Represents a register definition.
|
|
|
|
struct CodeGenRegister {
|
|
|
|
Record *TheDef;
|
|
|
|
const std::string &getName() const;
|
2004-08-21 04:24:57 +02:00
|
|
|
unsigned DeclaredSpillSize, DeclaredSpillAlignment;
|
|
|
|
CodeGenRegister(Record *R);
|
2004-08-16 03:09:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct CodeGenRegisterClass {
|
2004-08-21 06:05:00 +02:00
|
|
|
Record *TheDef;
|
|
|
|
std::vector<Record*> Elements;
|
|
|
|
unsigned SpillSize;
|
|
|
|
unsigned SpillAlignment;
|
2004-08-21 21:21:21 +02:00
|
|
|
std::string MethodDefinitions;
|
2004-08-21 06:05:00 +02:00
|
|
|
|
|
|
|
const std::string &getName() const;
|
2004-08-16 03:09:52 +02:00
|
|
|
|
2004-08-21 06:05:00 +02:00
|
|
|
CodeGenRegisterClass(Record *R);
|
2004-08-16 03:09:52 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|