mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
7e04c0ad63
Added keyword, LangAS and TypeAttrbute for groupshared. Tanslate it to LangAS with asHLSLLangAS. Make sure it translated into address space 3 for DirectX target. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D135060
16 lines
382 B
HLSL
16 lines
382 B
HLSL
|
|
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
|
|
// RUN: dxil-pc-shadermodel6.3-library %s \
|
|
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s
|
|
|
|
// Make sure groupshared translated into address space 3.
|
|
// CHECK:@"?a@@3PAMA" = addrspace(3) global [10 x float]
|
|
|
|
groupshared float a[10];
|
|
|
|
[numthreads(8,8,1)]
|
|
void main() {
|
|
a[0] = 1;
|
|
}
|
|
|