Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

69 lines
2.8 KiB
TableGen

// RUN: llvm-tblgen -gen-sd-node-info -I %p/../../../include %s -sdnode-namespace=EmptyISD \
// RUN: | FileCheck %s -check-prefix=EMPTY
// RUN: llvm-tblgen -gen-sd-node-info -I %p/../../../include %s \
// RUN: | FileCheck %s --check-prefixes=COMMON,TARGET -DNS=MyTargetISD
// RUN: llvm-tblgen -gen-sd-node-info -I %p/../../../include %s -sdnode-namespace=MyCustomISD \
// RUN: | FileCheck %s -check-prefixes=COMMON,CUSTOM -DNS=MyCustomISD
include "llvm/Target/Target.td"
def MyTarget : Target;
def node_1 : SDNode<"MyTargetISD::NODE", SDTypeProfile<1, 0, [SDTCisVT<0, i1>]>>;
def node_2 : SDNode<"MyCustomISD::NODE", SDTypeProfile<0, 1, [SDTCisVT<0, i2>]>>;
// EMPTY: namespace llvm::EmptyISD {
// EMPTY-EMPTY:
// EMPTY-NEXT: static constexpr unsigned GENERATED_OPCODE_END = ISD::BUILTIN_OP_END;
// EMPTY-EMPTY:
// EMPTY-NEXT: } // namespace llvm::EmptyISD
// EMPTY: static constexpr char MyTargetSDNodeNamesStorage[] =
// EMPTY-NEXT: "\0"
// EMPTY-NEXT: ;
// EMPTY: static const SDTypeConstraint MyTargetSDTypeConstraints[] = {
// EMPTY-NEXT: /* dummy */ {SDTCisVT, 0, 0, 0, MVT::INVALID_SIMPLE_VALUE_TYPE}
// EMPTY-NEXT: };
// EMPTY-EMPTY:
// EMPTY-NEXT: static const SDNodeDesc MyTargetSDNodeDescs[] = {
// EMPTY-NEXT: };
// EMPTY-EMPTY:
// EMPTY-NEXT: static const SDNodeInfo MyTargetGenSDNodeInfo(
// EMPTY-NEXT: /*NumOpcodes=*/0, MyTargetSDNodeDescs, MyTargetSDNodeNames,
// EMPTY-NEXT: MyTargetVTByHwModeTable, MyTargetSDTypeConstraints);
// COMMON: namespace llvm::[[NS]] {
// COMMON-EMPTY:
// COMMON-NEXT: enum GenNodeType : unsigned {
// COMMON-NEXT: NODE = ISD::BUILTIN_OP_END,
// COMMON-NEXT: };
// COMMON-EMPTY:
// COMMON-NEXT: static constexpr unsigned GENERATED_OPCODE_END = NODE + 1;
// COMMON-EMPTY:
// COMMON-NEXT: } // namespace llvm::[[NS]]
// COMMON: static constexpr char MyTargetSDNodeNamesStorage[] =
// COMMON-NEXT: "\0"
// COMMON-NEXT: "[[NS]]::NODE\0"
// COMMON-NEXT: ;
// COMMON: static const VTByHwModePair MyTargetVTByHwModeTable[] = {
// COMMON-NEXT: /* dummy */ {0, MVT::INVALID_SIMPLE_VALUE_TYPE}
// COMMON-NEXT: };
// COMMON: static const SDTypeConstraint MyTargetSDTypeConstraints[] = {
// TARGET-NEXT: /* 0 */ {SDTCisVT, 0, 0, 0, MVT::i1},
// CUSTOM-NEXT: /* 0 */ {SDTCisVT, 0, 0, 0, MVT::i2},
// COMMON-NEXT: };
// COMMON-EMPTY:
// COMMON-NEXT: static const SDNodeDesc MyTargetSDNodeDescs[] = {
// TARGET-NEXT: {1, 0, 0, 0, 0, 1, 0, 1}, // NODE
// CUSTOM-NEXT: {0, 1, 0, 0, 0, 1, 0, 1}, // NODE
// COMMON-NEXT: };
// COMMON-EMPTY:
// COMMON-NEXT: static const SDNodeInfo MyTargetGenSDNodeInfo(
// COMMON-NEXT: /*NumOpcodes=*/1, MyTargetSDNodeDescs, MyTargetSDNodeNames,
// COMMON-NEXT: MyTargetVTByHwModeTable, MyTargetSDTypeConstraints);