CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
66 lines
1.8 KiB
TableGen
66 lines
1.8 KiB
TableGen
// RUN: llvm-tblgen -gen-register-info -register-info-debug -I %p/../../include %s -o - 2>&1 >/dev/null | FileCheck %s --implicit-check-not=RegisterClass
|
|
|
|
include "llvm/Target/Target.td"
|
|
|
|
def lo : SubRegIndex<0, 32>;
|
|
def hi : SubRegIndex<32, 32>;
|
|
|
|
def R0 : Register<"r0">;
|
|
def R1 : Register<"r1">;
|
|
|
|
def A : Register<"a"> {
|
|
let isArtificial = 1;
|
|
}
|
|
|
|
def D0 : Register<"d0"> {
|
|
let SubRegs = [R0, R1];
|
|
let SubRegIndices = [lo, hi];
|
|
}
|
|
|
|
// Same artificial registers can participate in classes of
|
|
// registers and their sub-registers.
|
|
def RA : RegisterClass<"R", [i32], 32, (add R0, R1, A)>;
|
|
def DA : RegisterClass<"D", [i64], 64, (add D0, A)>;
|
|
|
|
// Make sure there are no DA_and_RA and DA_with_hi kind of
|
|
// classes that only contain artificial registers or are inferred
|
|
// copies of already existing register classes that only differ
|
|
// in the presence of artificial regsiters.
|
|
//
|
|
// CHECK-LABEL: RegisterClass RA:
|
|
// CHECK-NEXT: SpillSize:
|
|
// CHECK-NEXT: SpillAlignment:
|
|
// CHECK-NEXT: NumRegs:
|
|
// CHECK-NEXT: LaneMask:
|
|
// CHECK-NEXT: HasDisjunctSubRegs:
|
|
// CHECK-NEXT: CoveredBySubRegs:
|
|
// CHECK-NEXT: Allocatable:
|
|
// CHECK-NEXT: AllocationPriority:
|
|
// CHECK-NEXT: Weight: 1
|
|
// CHECK-NEXT: BaseClassOrder:
|
|
// CHECK-NEXT: Regs: A R0 R1{{$}}
|
|
// CHECK-NEXT: SubClasses: RA{{$}}
|
|
//
|
|
// CHECK-LABEL: RegisterClass DA:
|
|
// CHECK-NEXT: SpillSize:
|
|
// CHECK-NEXT: SpillAlignment:
|
|
// CHECK-NEXT: NumRegs:
|
|
// CHECK-NEXT: LaneMask:
|
|
// CHECK-NEXT: HasDisjunctSubRegs:
|
|
// CHECK-NEXT: CoveredBySubRegs:
|
|
// CHECK-NEXT: Allocatable:
|
|
// CHECK-NEXT: AllocationPriority:
|
|
// CHECK-NEXT: Weight: 2
|
|
// CHECK-NEXT: BaseClassOrder:
|
|
// CHECK-NEXT: Regs: A D0{{$}}
|
|
// CHECK-NEXT: SubClasses: DA{{$}}
|
|
//
|
|
// CHECK-LABEL: Register A:
|
|
// CHECK-NEXT: CostPerUse: 0
|
|
// CHECK-NEXT: CoveredBySubregs: 0
|
|
// CHECK-NEXT: HasDisjunctSubRegs: 0
|
|
// CHECK-NEXT: RegUnit 0
|
|
// CHECK-NEXT: Artificial: 1
|
|
|
|
def TestTarget : Target;
|