[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 17 10:36:14 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/5917

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -o - -O0 /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -o - -O0 /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl:14:11: error: CHECK: expected string not found in input
// CHECK: define internal void @"?main@@YAXI at Z"
          ^
<stdin>:1:1: note: scanning from here
; ModuleID = '/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl'
^
<stdin>:12:1: note: possible intended match here
define void @main() #0 {
^

Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ; ModuleID = '/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl' 
check:14'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
            2: source_filename = "/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl" 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            3: target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64" 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            4: target triple = "dxilv1.0-pc-shadermodel6.0-compute" 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            5:  
check:14'0     ~
            6: %"class.hlsl::StructuredBuffer" = type { ptr } 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            7:  
check:14'0     ~
            8: @"?In@@3V?$StructuredBuffer at H@hlsl@@A" = global %"class.hlsl::StructuredBuffer" zeroinitializer, align 4 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            9: @"?Out@@3V?$StructuredBuffer at H@hlsl@@A" = global %"class.hlsl::StructuredBuffer" zeroinitializer, align 4 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           10:  
check:14'0     ~
           11: ; Function Attrs: convergent noinline norecurse 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           12: define void @main() #0 { 
check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
check:14'1     ?                         possible intended match
...

```

</details>

https://github.com/llvm/llvm-project/pull/106588


More information about the cfe-commits mailing list