[clang] [llvm] [LLVM] Trim intrinsics (PR #112791)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 21 22:28:56 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-aarch64
Author: Rahul Joshi (jurahul)
<details>
<summary>Changes</summary>
---
Patch is 174.94 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/112791.diff
167 Files Affected:
- (modified) clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/GlobalConstructors.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/GlobalDestructors.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/RWBuffer-constructor.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/RWBuffer-elementtype.hlsl (+3-2)
- (modified) clang/test/CodeGenHLSL/builtins/RWBuffer-subscript.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/RasterizerOrderedBuffer-annotations.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/StructuredBuffer-annotations.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/StructuredBuffer-constructor.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/WaveReadLaneAt.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/all.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/any.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/clamp-builtin.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/clamp.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/cross.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/degrees.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/dot.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/frac.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/isinf.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/length.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/lerp-builtin.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/lerp.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/mad.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/normalize.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/radians.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/rsqrt.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/saturate.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/sign.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/step.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/builtins/wave_get_lane_index_do_while.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/wave_get_lane_index_simple.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/builtins/wave_is_first_lane.hlsl (+2)
- (modified) clang/test/CodeGenHLSL/implicit-norecurse-attrib.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/inline-constructors.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/inline-functions.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/semantics/DispatchThreadID.hlsl (+1)
- (modified) clang/test/CodeGenHLSL/semantics/GroupIndex-codegen.hlsl (+1)
- (modified) llvm/CMakeLists.txt (+35)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h (+2-2)
- (modified) llvm/include/llvm/IR/CMakeLists.txt (+20-20)
- (modified) llvm/include/llvm/IR/Intrinsics.h (+13)
- (added) llvm/include/llvm/Support/IntrinsicID.h (+59)
- (modified) llvm/lib/CodeGen/MachineOperand.cpp (+1-1)
- (modified) llvm/lib/CodeGen/MachineVerifier.cpp (+2-2)
- (modified) llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp (+1-1)
- (modified) llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (+1-1)
- (modified) llvm/lib/IR/Core.cpp (+2-1)
- (modified) llvm/lib/IR/Intrinsics.cpp (+109-24)
- (modified) llvm/lib/Target/AArch64/AArch64ISelLowering.cpp (+1-1)
- (modified) llvm/lib/Target/AArch64/CMakeLists.txt (+4-4)
- (modified) llvm/lib/Target/AMDGPU/CMakeLists.txt (+7-7)
- (modified) llvm/lib/Target/ARC/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/ARM/CMakeLists.txt (+4-4)
- (modified) llvm/lib/Target/AVR/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/BPF/CMakeLists.txt (+3-3)
- (modified) llvm/lib/Target/CSKY/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/DirectX/CMakeLists.txt (+2-1)
- (modified) llvm/lib/Target/Hexagon/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/Lanai/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/LoongArch/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/M68k/CMakeLists.txt (+3-3)
- (modified) llvm/lib/Target/MSP430/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/Mips/CMakeLists.txt (+4-4)
- (modified) llvm/lib/Target/NVPTX/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/PowerPC/CMakeLists.txt (+4-4)
- (modified) llvm/lib/Target/RISCV/CMakeLists.txt (+3-3)
- (modified) llvm/lib/Target/SPIRV/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/Sparc/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/SystemZ/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/VE/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/WebAssembly/CMakeLists.txt (+3-3)
- (modified) llvm/lib/Target/X86/CMakeLists.txt (+5-4)
- (modified) llvm/lib/Target/X86/X86IntrinsicsInfo.h (+1-2)
- (modified) llvm/lib/Target/XCore/CMakeLists.txt (+2-2)
- (modified) llvm/lib/Target/Xtensa/CMakeLists.txt (+2-2)
- (modified) llvm/test/Analysis/CtxProfAnalysis/full-cycle.ll (+1)
- (modified) llvm/test/Analysis/DXILResource/buffer-frombinding.ll (+1)
- (modified) llvm/test/Analysis/MemorySSA/pr36883.ll (+1)
- (modified) llvm/test/Analysis/ValueTracking/aarch64.irg.ll (+1)
- (modified) llvm/test/Analysis/ValueTracking/knownbits-x86-hadd-hsub.ll (+1)
- (modified) llvm/test/Assembler/amdgpu-image-atomic-attributes.ll (+1)
- (modified) llvm/test/Assembler/autoupgrade-wasm-intrinsics.ll (+1)
- (modified) llvm/test/Assembler/opaque-ptr-intrinsic-remangling.ll (+1)
- (modified) llvm/test/Bitcode/aarch64-addp-upgrade.ll (+1)
- (modified) llvm/test/Bitcode/aarch64-bf16-upgrade.ll (+1)
- (modified) llvm/test/Bitcode/arm-bf16-upgrade.ll (+1)
- (modified) llvm/test/Bitcode/arm-intrinsics.ll (+1)
- (modified) llvm/test/Bitcode/intrinsics-struct-upgrade-attributes.ll (+1)
- (modified) llvm/test/Bitcode/intrinsics-struct-upgrade.ll (+1)
- (modified) llvm/test/Bitcode/ptest-new.ll (+1)
- (modified) llvm/test/Bitcode/upgrade-aarch64-ldstxr.ll (+1)
- (modified) llvm/test/Bitcode/upgrade-aarch64-sve-intrinsics.ll (+1)
- (modified) llvm/test/CodeGen/AArch64/arm64-vshift.ll (+1)
- (modified) llvm/test/Instrumentation/MemorySanitizer/AArch64/arm64-vshift.ll (+1)
- (modified) llvm/test/Instrumentation/MemorySanitizer/AArch64/neon_vst.ll (+1)
- (modified) llvm/test/Instrumentation/MemorySanitizer/AArch64/neon_vst_float.ll (+1)
- (modified) llvm/test/Instrumentation/MemorySanitizer/AArch64/neon_vst_lane.ll (+1)
- (modified) llvm/test/Instrumentation/MemorySanitizer/AArch64/neon_vst_origins.ll (+1)
- (modified) llvm/test/TableGen/ContextlessPredicates.td (+2-2)
- (modified) llvm/test/TableGen/DAGDefaultOps.td (+1-1)
- (modified) llvm/test/TableGen/DefaultOpsGlobalISel.td (+1-1)
- (modified) llvm/test/TableGen/DuplicateFieldValues.td (+1-1)
- (modified) llvm/test/TableGen/FastISelEmitter.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-intrinsics.td (+7-7)
- (modified) llvm/test/TableGen/GlobalISelEmitter-PR39045.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-SDNodeXForm-timm.td (+3-3)
- (modified) llvm/test/TableGen/GlobalISelEmitter-atomic_store.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-frameindex.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-immAllZeroOne.td (+2-2)
- (modified) llvm/test/TableGen/GlobalISelEmitter-immarg-literal-pattern.td (+3-3)
- (modified) llvm/test/TableGen/GlobalISelEmitter-implicit-defs.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-input-discard.td (+2-2)
- (modified) llvm/test/TableGen/GlobalISelEmitter-multiple-output-discard.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-multiple-output.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-nested-subregs.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-notype-output-pattern.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-output-discard.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-setcc.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-zero-instr.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter-zero-reg.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitter.td (+7-7)
- (modified) llvm/test/TableGen/GlobalISelEmitterCustomPredicate.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterFlags.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterHwModes.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterMatchTableOptimizer.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterMatchTableOptimizerSameOperand-invalid.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterMatchTableOptimizerSameOperand.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterOverloadedPtr.td (+2-2)
- (modified) llvm/test/TableGen/GlobalISelEmitterRegSequence.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterSkippedPatterns.td (+2-2)
- (modified) llvm/test/TableGen/GlobalISelEmitterSubreg.td (+1-1)
- (modified) llvm/test/TableGen/GlobalISelEmitterVariadic.td (+1-1)
- (modified) llvm/test/TableGen/HasNoUse.td (+2-2)
- (modified) llvm/test/TableGen/RelTest.td (+1-1)
- (modified) llvm/test/TableGen/address-space-patfrags.td (+2-2)
- (modified) llvm/test/TableGen/dag-isel-complexpattern.td (+1-1)
- (modified) llvm/test/TableGen/dag-isel-regclass-emit-enum.td (+1-1)
- (modified) llvm/test/TableGen/dag-isel-res-order.td (+1-1)
- (modified) llvm/test/TableGen/dag-isel-subregs.td (+1-1)
- (modified) llvm/test/TableGen/def-multiple-operands.td (+1-1)
- (modified) llvm/test/TableGen/get-operand-type-no-expand.td (+2-2)
- (modified) llvm/test/TableGen/get-operand-type.td (+1-1)
- (modified) llvm/test/TableGen/gisel-physreg-input.td (+1-1)
- (modified) llvm/test/TableGen/immarg-predicated.td (+2-2)
- (modified) llvm/test/TableGen/immarg.td (+2-2)
- (modified) llvm/test/TableGen/intrinsic-attrs.td (+1-1)
- (modified) llvm/test/TableGen/intrinsic-duplicate-name.td (+1-1)
- (modified) llvm/test/TableGen/intrinsic-long-name.td (+1-1)
- (modified) llvm/test/TableGen/intrinsic-overload-conflict.td (+3-3)
- (modified) llvm/test/TableGen/intrinsic-prefix-error.td (+1-1)
- (modified) llvm/test/TableGen/intrinsic-struct.td (+4-4)
- (modified) llvm/test/TableGen/intrinsic-target-prefix-for-target-independent.td (+1-1)
- (modified) llvm/test/TableGen/intrinsic-varargs.td (+1-1)
- (modified) llvm/test/TableGen/invalid-type-cast-patfrags.td (+4-4)
- (modified) llvm/test/TableGen/multiple-type-casts-patfrags.td (+2-2)
- (modified) llvm/test/TableGen/predicate-patfags.td (+6-6)
- (modified) llvm/test/TableGen/simplify-patfrag.td (+2-2)
- (modified) llvm/unittests/IR/VPIntrinsicTest.cpp (+8-7)
- (modified) llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp (+163-45)
- (modified) llvm/utils/TableGen/Basic/CodeGenIntrinsics.h (+25-13)
- (modified) llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp (+1-1)
- (modified) llvm/utils/TableGen/Common/CodeGenDAGPatterns.h (+3-11)
- (modified) llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp (+2-2)
- (modified) llvm/utils/TableGen/IntrinsicEmitter.cpp (+140-95)
``````````diff
diff --git a/clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl b/clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl
index c0eb1b138ed047..dd1d31d15ff675 100644
--- a/clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl
+++ b/clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s --check-prefixes=CHECK,NOINLINE
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -O0 %s -o - | FileCheck %s --check-prefixes=CHECK,INLINE
diff --git a/clang/test/CodeGenHLSL/GlobalConstructors.hlsl b/clang/test/CodeGenHLSL/GlobalConstructors.hlsl
index 7b26dba0d19010..cddf59ac3d2c21 100644
--- a/clang/test/CodeGenHLSL/GlobalConstructors.hlsl
+++ b/clang/test/CodeGenHLSL/GlobalConstructors.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s
RWBuffer<float> Buffer;
diff --git a/clang/test/CodeGenHLSL/GlobalDestructors.hlsl b/clang/test/CodeGenHLSL/GlobalDestructors.hlsl
index f98318601134bb..4227f85033c778 100644
--- a/clang/test/CodeGenHLSL/GlobalDestructors.hlsl
+++ b/clang/test/CodeGenHLSL/GlobalDestructors.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s --check-prefixes=CS,NOINLINE,CHECK
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s --check-prefixes=LIB,NOINLINE,CHECK
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -O0 %s -o - | FileCheck %s --check-prefixes=INLINE,CHECK
diff --git a/clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl b/clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl
index e1e047485e4df0..9b13339b801e66 100644
--- a/clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
RWBuffer<float> Buffer1;
diff --git a/clang/test/CodeGenHLSL/builtins/RWBuffer-constructor.hlsl b/clang/test/CodeGenHLSL/builtins/RWBuffer-constructor.hlsl
index 3949f7b943cfe0..e881edf5dd2a21 100644
--- a/clang/test/CodeGenHLSL/builtins/RWBuffer-constructor.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/RWBuffer-constructor.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-DXIL
// FIXME: SPIR-V codegen of llvm.spv.handle.fromBinding is not yet implemented
// RUN-DISABLED: %clang_cc1 -triple spirv-vulkan-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-SPIRV
diff --git a/clang/test/CodeGenHLSL/builtins/RWBuffer-elementtype.hlsl b/clang/test/CodeGenHLSL/builtins/RWBuffer-elementtype.hlsl
index fa81b53fd9bddc..a145c95f612e1f 100644
--- a/clang/test/CodeGenHLSL/builtins/RWBuffer-elementtype.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/RWBuffer-elementtype.hlsl
@@ -1,8 +1,9 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.2-compute -finclude-default-header -fnative-half-type -emit-llvm -o - %s | FileCheck %s
// NOTE: The type name number and whether the struct is packed or not will mostly
-// likely change once subscript operators are properly implemented (llvm/llvm-project#95956)
-// and theinterim field of the contained type is removed.
+// likely change once subscript operators are properly implemented (llvm/llvm-project#95956)
+// and the interim field of the contained type is removed.
// CHECK: %"class.hlsl::RWBuffer" = type <{ target("dx.TypedBuffer", i16, 1, 0, 1)
// CHECK: %"class.hlsl::RWBuffer.0" = type <{ target("dx.TypedBuffer", i16, 1, 0, 0)
diff --git a/clang/test/CodeGenHLSL/builtins/RWBuffer-subscript.hlsl b/clang/test/CodeGenHLSL/builtins/RWBuffer-subscript.hlsl
index 2a350c1619bd6e..f431264f9751f8 100644
--- a/clang/test/CodeGenHLSL/builtins/RWBuffer-subscript.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/RWBuffer-subscript.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -o - -O0 %s | FileCheck %s
RWBuffer<int> In;
diff --git a/clang/test/CodeGenHLSL/builtins/RasterizerOrderedBuffer-annotations.hlsl b/clang/test/CodeGenHLSL/builtins/RasterizerOrderedBuffer-annotations.hlsl
index 5155f129025979..c120b5e242e89d 100644
--- a/clang/test/CodeGenHLSL/builtins/RasterizerOrderedBuffer-annotations.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/RasterizerOrderedBuffer-annotations.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-pixel -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
RasterizerOrderedBuffer<float> Buffer1;
diff --git a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-annotations.hlsl b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-annotations.hlsl
index 4d3d4908c396e6..22a7e4d7ea5e6f 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-annotations.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-annotations.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
StructuredBuffer<float> Buffer1;
diff --git a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-constructor.hlsl b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-constructor.hlsl
index 4dbca9bc0a4d93..b447d53de31b26 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-constructor.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-constructor.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-DXIL
// RUN-DISABLED: %clang_cc1 -triple spirv-vulkan-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-SPIRV
diff --git a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl
index a99c7f98a1afb6..d9cf2e310f401e 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.2-compute -finclude-default-header -fnative-half-type -emit-llvm -o - %s | FileCheck %s
// NOTE: The number in type name and whether the struct is packed or not will mostly
diff --git a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
index 155749ec4f94a9..1933ce3edd8f4d 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm -o - -O0 %s | FileCheck %s
StructuredBuffer<int> In;
diff --git a/clang/test/CodeGenHLSL/builtins/WaveReadLaneAt.hlsl b/clang/test/CodeGenHLSL/builtins/WaveReadLaneAt.hlsl
index 093a199a32bdc8..3e6d9271b8e273 100644
--- a/clang/test/CodeGenHLSL/builtins/WaveReadLaneAt.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/WaveReadLaneAt.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -fnative-half-type -triple \
// RUN: dxil-pc-shadermodel6.3-compute %s -emit-llvm -disable-llvm-passes -o - | \
// RUN: FileCheck %s --check-prefixes=CHECK,CHECK-DXIL
diff --git a/clang/test/CodeGenHLSL/builtins/all.hlsl b/clang/test/CodeGenHLSL/builtins/all.hlsl
index 39f364c5953d60..ec315b7b26c9c5 100644
--- a/clang/test/CodeGenHLSL/builtins/all.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/all.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: spirv-unknown-vulkan-compute %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/any.hlsl b/clang/test/CodeGenHLSL/builtins/any.hlsl
index 3d9d8e9e689ed0..4ceca3b78e2503 100644
--- a/clang/test/CodeGenHLSL/builtins/any.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/any.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: spirv-unknown-vulkan-compute %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/clamp-builtin.hlsl b/clang/test/CodeGenHLSL/builtins/clamp-builtin.hlsl
index e3ef26429e7e40..b6721b3fa8e2f2 100644
--- a/clang/test/CodeGenHLSL/builtins/clamp-builtin.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/clamp-builtin.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -o - | FileCheck %s
// CHECK-LABEL: builtin_test_clamp_int4
diff --git a/clang/test/CodeGenHLSL/builtins/clamp.hlsl b/clang/test/CodeGenHLSL/builtins/clamp.hlsl
index af8f6b9733a071..97f68c0f1bdfa4 100644
--- a/clang/test/CodeGenHLSL/builtins/clamp.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/clamp.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \
// RUN: -fnative-half-type -emit-llvm -disable-llvm-passes -o - | \
// RUN: FileCheck %s --check-prefixes=CHECK,NATIVE_HALF
diff --git a/clang/test/CodeGenHLSL/builtins/cross.hlsl b/clang/test/CodeGenHLSL/builtins/cross.hlsl
index 514e57d36b2016..f5a07e8ea08d38 100644
--- a/clang/test/CodeGenHLSL/builtins/cross.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/cross.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/degrees.hlsl b/clang/test/CodeGenHLSL/builtins/degrees.hlsl
index 9e131f4badc19a..304c0b5e43916c 100644
--- a/clang/test/CodeGenHLSL/builtins/degrees.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/degrees.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/dot.hlsl b/clang/test/CodeGenHLSL/builtins/dot.hlsl
index 3f6be04a595e23..bcbd181c948b1f 100644
--- a/clang/test/CodeGenHLSL/builtins/dot.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/dot.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/frac.hlsl b/clang/test/CodeGenHLSL/builtins/frac.hlsl
index f0fbba978c0237..76b7c3a6c9a3c0 100644
--- a/clang/test/CodeGenHLSL/builtins/frac.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/frac.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/isinf.hlsl b/clang/test/CodeGenHLSL/builtins/isinf.hlsl
index df44fc4a91dfd0..93f77a9c9718a4 100644
--- a/clang/test/CodeGenHLSL/builtins/isinf.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/isinf.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/length.hlsl b/clang/test/CodeGenHLSL/builtins/length.hlsl
index 1c23b0df04df98..51c077b1e548bc 100644
--- a/clang/test/CodeGenHLSL/builtins/length.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/length.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/lerp-builtin.hlsl b/clang/test/CodeGenHLSL/builtins/lerp-builtin.hlsl
index f9b3cbcddfb695..963632dafc7eed 100644
--- a/clang/test/CodeGenHLSL/builtins/lerp-builtin.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/lerp-builtin.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -o - | FileCheck %s
// CHECK-LABEL: builtin_lerp_half_vector
diff --git a/clang/test/CodeGenHLSL/builtins/lerp.hlsl b/clang/test/CodeGenHLSL/builtins/lerp.hlsl
index b11046894bd889..66425ee30cbf86 100644
--- a/clang/test/CodeGenHLSL/builtins/lerp.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/lerp.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/mad.hlsl b/clang/test/CodeGenHLSL/builtins/mad.hlsl
index 265a2552c80fb4..8dea8763169b87 100644
--- a/clang/test/CodeGenHLSL/builtins/mad.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/mad.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/normalize.hlsl b/clang/test/CodeGenHLSL/builtins/normalize.hlsl
index 83ad607c14a607..95aaef63e6d1d3 100644
--- a/clang/test/CodeGenHLSL/builtins/normalize.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/normalize.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/radians.hlsl b/clang/test/CodeGenHLSL/builtins/radians.hlsl
index 774300525dbf02..283130888fe850 100644
--- a/clang/test/CodeGenHLSL/builtins/radians.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/radians.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/rsqrt.hlsl b/clang/test/CodeGenHLSL/builtins/rsqrt.hlsl
index b1b53fc187da67..fb05d285917d54 100644
--- a/clang/test/CodeGenHLSL/builtins/rsqrt.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/rsqrt.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/saturate.hlsl b/clang/test/CodeGenHLSL/builtins/saturate.hlsl
index c221f6e0f2c36f..b0a3b34db75720 100644
--- a/clang/test/CodeGenHLSL/builtins/saturate.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/saturate.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \
// RUN: -fnative-half-type -emit-llvm -disable-llvm-passes -o - | \
// RUN: FileCheck %s --check-prefixes=CHECK,NATIVE_HALF -Dtar=dx
diff --git a/clang/test/CodeGenHLSL/builtins/sign.hlsl b/clang/test/CodeGenHLSL/builtins/sign.hlsl
index 1cdefa815b103f..bc7e7d4c30e5cf 100644
--- a/clang/test/CodeGenHLSL/builtins/sign.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/sign.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/step.hlsl b/clang/test/CodeGenHLSL/builtins/step.hlsl
index 442f4930ca579c..fdc588b101460f 100644
--- a/clang/test/CodeGenHLSL/builtins/step.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/step.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
diff --git a/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_do_while.hlsl b/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_do_while.hlsl
index 3ab8048146ad30..c17b88ed809ed3 100644
--- a/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_do_while.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_do_while.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
// RUN: spirv-pc-vulkan-library %s -emit-llvm -disable-llvm-passes -o - | FileCheck %s
diff --git a/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_simple.hlsl b/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_simple.hlsl
index 8e1f2d69e74329..8743edfb74e5e2 100644
--- a/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_simple.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/wave_get_lane_index_simple.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
// RUN: spirv-pc-vulkan-library %s -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
// RUN: --check-prefixes=CHECK,CHECK-SPIRV
diff --git a/clang/test/CodeGenHLSL/builtins/wave_is_first_lane.hlsl b/clang/test/CodeGenHLSL/builtins/wave_is_first_lane.hlsl
index 2fb6defb896f90..5317c906480a63 100644
--- a/clang/test/CodeGenHLSL/builtins/wave_is_first_lane.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/wave_is_first_lane.hlsl
@@ -1,3 +1,5 @@
+// REQUIRES: directx-registered-target
+// REQUIRES: spirv-registered-target
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
// RUN: spirv-pc-vulkan-compute %s -emit-llvm -disable-llvm-passes -o - | \
// RUN: FileCheck %s --check-prefixes=CHECK,CHECK-SPIRV
diff --git a/clang/test/CodeGenHLSL/implicit-norecurse-attrib.hlsl b/clang/test/CodeGenHLSL/implicit-norecurse-attrib.hlsl
index 5efecc1489afca..b097959a3c4ed5 100644
--- a/clang/test/CodeGenHLSL/implicit-norecurse-attrib.hlsl
+++ b/clang/test/CodeGenHLSL/implicit-norecurse-attrib.hlsl
@@ -1,3 +1,4 @@
+// REQUIRES: directx-registered-target
// RUN: %clang_cc1 -x hlsl -triple dxil-pc-shadermodel6.3-library -finclude-default-header ...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/112791
More information about the cfe-commits
mailing list