mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Add initial support for register and register class representation.
Obviously this is not done. llvm-svn: 15804
This commit is contained in:
parent
94c82ae3a2
commit
c07542698b
37
utils/TableGen/CodeGenRegisters.h
Normal file
37
utils/TableGen/CodeGenRegisters.h
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
//===- 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>
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
|
class Record;
|
||||||
|
|
||||||
|
/// CodeGenRegister - Represents a register definition.
|
||||||
|
struct CodeGenRegister {
|
||||||
|
Record *TheDef;
|
||||||
|
const std::string &getName() const;
|
||||||
|
|
||||||
|
CodeGenRegister(Record *R) : TheDef(R) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
struct CodeGenRegisterClass {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user