[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 9 11:56:10 PDT 2024
================
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
+
+void foo(__hlsl_resource_t res);
+
+// CHECK: define void @"?bar@@YAXU__hlsl_resource_t@@@Z"(target("dx.TypedBuffer", <4 x float>, 1, 0, 1) %a)
+// CHECK: call void @"?foo@@YAXU__hlsl_resource_t@@@Z"(target("dx.TypedBuffer", <4 x float>, 1, 0, 1) %0)
----------------
hekota wrote:
I've changed it to use `-O1` and capture the argument name.
https://github.com/llvm/llvm-project/pull/104856
More information about the cfe-commits
mailing list