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
45 lines
1.0 KiB
TableGen
45 lines
1.0 KiB
TableGen
include "llvm/Target/Target.td"
|
|
|
|
class MyReg<string n> : Register<n> {
|
|
let Namespace = "MyTarget";
|
|
}
|
|
|
|
class MyClass<int size, list<ValueType> types, dag registers>
|
|
: RegisterClass<"MyTarget", types, size, registers> {
|
|
let Size = size;
|
|
}
|
|
|
|
def X0 : MyReg<"x0">;
|
|
def X1 : MyReg<"x1">;
|
|
def X2 : MyReg<"x2">;
|
|
def X3 : MyReg<"x3">;
|
|
def X4 : MyReg<"x4">;
|
|
def X5 : MyReg<"x5">;
|
|
def X6 : MyReg<"x6">;
|
|
def XRegs : RegisterClass<"MyTarget", [i64], 64, (add X0, X1, X2, X3, X4, X5, X6)>;
|
|
def Y0 : MyReg<"y0">;
|
|
def Y1 : MyReg<"y1">;
|
|
def Y2 : MyReg<"y2">;
|
|
def Y3 : MyReg<"y3">;
|
|
def Y4 : MyReg<"y4">;
|
|
def Y5 : MyReg<"y5">;
|
|
def Y6 : MyReg<"y6">;
|
|
def YRegs : RegisterClass<"MyTarget", [i64], 64, (add Y0, Y1, Y2, Y3, Y4, Y5, Y6)>;
|
|
|
|
class TestInstruction : Instruction {
|
|
let Size = 2;
|
|
let Namespace = "MyTarget";
|
|
let hasSideEffects = false;
|
|
let hasExtraSrcRegAllocReq = false;
|
|
let hasExtraDefRegAllocReq = false;
|
|
|
|
field bits<16> Inst;
|
|
bits<3> dst;
|
|
bits<3> src;
|
|
bits<3> opcode;
|
|
|
|
let Inst{2-0} = dst;
|
|
let Inst{5-3} = src;
|
|
let Inst{7-5} = opcode;
|
|
}
|