mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 17:07:06 +00:00
31d157ae1a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150878 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
1.5 KiB
TableGen
37 lines
1.5 KiB
TableGen
//===-- PTXRegisterInfo.td - PTX Register defs -------------*- tablegen -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Declarations that describe the PTX register file
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
class PTXReg<string n> : Register<n> {
|
|
let Namespace = "PTX";
|
|
}
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Registers
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// The generated register info code throws warnings for empty register classes
|
|
// (e.g. zero-length arrays), so we use a dummy register here just to prevent
|
|
// these warnings.
|
|
def DUMMY_REG : PTXReg<"R0">;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Register classes
|
|
//===----------------------------------------------------------------------===//
|
|
def RegPred : RegisterClass<"PTX", [i1], 8, (add DUMMY_REG)>;
|
|
def RegI16 : RegisterClass<"PTX", [i16], 16, (add DUMMY_REG)>;
|
|
def RegI32 : RegisterClass<"PTX", [i32], 32, (add DUMMY_REG)>;
|
|
def RegI64 : RegisterClass<"PTX", [i64], 64, (add DUMMY_REG)>;
|
|
def RegF32 : RegisterClass<"PTX", [f32], 32, (add DUMMY_REG)>;
|
|
def RegF64 : RegisterClass<"PTX", [f64], 64, (add DUMMY_REG)>;
|
|
|