Skip to content

Commit 125a3ce

Browse files
committed
pull upstream resolve conflicts
2 parents 71f2766 + d64d34c commit 125a3ce

File tree

342 files changed

+23270
-3615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+23270
-3615
lines changed

.github/workflows/clang-format-checker.yml

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
permissions:
1313
pull-requests: write
1414
steps:
15-
- name: Fetch LLVM sources
15+
- name: Fetch DirectXShaderCompiler sources
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
ref: ${{ github.event.pull_request.head.sha }}
@@ -31,6 +31,20 @@ jobs:
3131
separator: ","
3232
skip_initial_fetch: true
3333

34+
# We need to pull the script from the main branch, so that we ensure
35+
# we get the latest version of this script.
36+
- name: Fetch code formatting utils
37+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38+
with:
39+
repository: microsoft/DirectXShaderCompiler
40+
ref: ${{ github.base_ref }}
41+
sparse-checkout: |
42+
utils/git/requirements_formatting.txt
43+
utils/git/code-format-helper.py
44+
utils/git/code-format-save-diff.py
45+
sparse-checkout-cone-mode: false
46+
path: code-format-tools
47+
3448
- name: "Listed files"
3549
env:
3650
LISTED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
@@ -48,10 +62,10 @@ jobs:
4862
with:
4963
python-version: '3.11'
5064
cache: 'pip'
51-
cache-dependency-path: 'utils/git/requirements_formatting.txt'
65+
cache-dependency-path: 'code-format-tools/utils/git/requirements_formatting.txt'
5266

5367
- name: Install python dependencies
54-
run: pip install -r utils/git/requirements_formatting.txt
68+
run: pip install -r code-format-tools/utils/git/requirements_formatting.txt
5569

5670
- name: Run code formatter
5771
id: formatter
@@ -61,7 +75,7 @@ jobs:
6175
END_REV: ${{ github.event.pull_request.head.sha }}
6276
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
6377
run: |
64-
python utils/git/code-format-helper.py \
78+
python code-format-tools/utils/git/code-format-helper.py \
6579
--token ${{ secrets.GITHUB_TOKEN }} \
6680
--issue-number $GITHUB_PR_NUMBER \
6781
--start-rev $START_REV \
@@ -92,28 +106,37 @@ jobs:
92106
} catch (err) {
93107
core.setFailed(`Request failed with error ${err}`)
94108
}
95-
- name: Fetch LLVM sources
96-
uses: actions/checkout@v4
109+
110+
# We need to pull the script from the main branch, so that we ensure
111+
# we get the latest version of this script.
112+
- name: Fetch code formatting utils
113+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
97114
with:
98-
fetch-depth: 2
99-
path: build/main_src
115+
repository: microsoft/DirectXShaderCompiler
116+
ref: ${{ github.base_ref }}
117+
sparse-checkout: |
118+
utils/git/requirements_formatting.txt
119+
utils/git/code-format-helper.py
120+
utils/git/code-format-save-diff.py
121+
sparse-checkout-cone-mode: false
122+
path: code-format-tools
100123

101124
- name: Setup Python env
102125
uses: actions/setup-python@v4
103126
with:
104127
python-version: '3.11'
105128
cache: 'pip'
106-
cache-dependency-path: 'build/main_src/utils/git/requirements_formatting.txt'
129+
cache-dependency-path: 'code-format-tools/utils/git/requirements_formatting.txt'
107130

108131
- name: Install python dependencies
109-
run: pip install -r build/main_src/utils/git/requirements_formatting.txt
132+
run: pip install -r code-format-tools/utils/git/requirements_formatting.txt
110133

111134
- name: Apply code diff
112135
env:
113136
GITHUB_PR_NUMBER: ${{ github.event.issue.number }}
114137
COMMENT_ID: ${{ github.event.comment.id }}
115138
run: |
116-
python build/main_src/utils/git/code-format-save-diff.py \
139+
python code-format-tools/utils/git/code-format-save-diff.py \
117140
--token ${{ secrets.GITHUB_TOKEN }} \
118141
--issue-number $GITHUB_PR_NUMBER \
119142
--tmp-diff-file $TMP_DIFF_FILE \

autoconf/config.guess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,9 @@ EOF
929929
ia64:Linux:*:*)
930930
echo ${UNAME_MACHINE}-unknown-linux-gnu
931931
exit ;;
932+
loongarch64:Linux:*:*)
933+
echo ${UNAME_MACHINE}-unknown-linux-gnu
934+
exit ;;
932935
m32r*:Linux:*:*)
933936
echo ${UNAME_MACHINE}-unknown-linux-gnu
934937
exit ;;

azure-pipelines.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ stages:
5252

5353
variables:
5454
macOS: macOS-latest
55-
linux: Ubuntu-latest
55+
linux: Ubuntu-22.04 # FIXME: #7364, DXC does not build correctly with GCC 13+
5656

5757
strategy:
5858
matrix:
59-
Linux_Clang_Release:
59+
Linux_Clang_RelWithDebInfo:
6060
image: ${{ variables.linux }}
61-
configuration: Release
61+
configuration: RelWithDebInfo
6262
CC: clang-18
6363
CXX: clang++-18
64-
CMAKE_OPTS: -DLLVM_ENABLE_WERROR=On -DLLVM_USE_SANITIZER='Address;Undefined' -DLLVM_ENABLE_LIBCXX=On -DLLVM_USE_LINKER=lld
65-
CHECK_ALL_ENV: ASAN_OPTIONS=alloc_dealloc_mismatch=0
64+
CMAKE_OPTS: -DLLVM_ENABLE_WERROR=On -DLLVM_USE_SANITIZER='Address;Undefined' -DLLVM_ENABLE_LIBCXX=On -DLLVM_USE_LINKER=lld-18
65+
CHECK_ALL_ENV: ASAN_OPTIONS=alloc_dealloc_mismatch=0 LSAN_OPTIONS=suppressions=$BUILD_SOURCESDIRECTORY/utils/asan/x86_64-pc-linux-gnu.lsan.supp:print_suppressions=0 ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-18 LSAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-18
6666
OS: Linux
6767
Linux_Clang_Debug:
6868
image: ${{ variables.linux }}
@@ -107,6 +107,8 @@ stages:
107107
versionSpec: '3.x'
108108

109109
- bash: |
110+
sudo apt-get update
111+
sudo apt-get upgrade libc6 libc6-dbg
110112
sudo apt-get install ninja-build
111113
wget https://apt.llvm.org/llvm.sh
112114
chmod u+x llvm.sh

cmake/config-ix.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "wasm64")
367367
set(LLVM_NATIVE_ARCH WebAssembly)
368368
elseif (LLVM_NATIVE_ARCH MATCHES "riscv64")
369369
set(LLVM_NATIVE_ARCH RISCV)
370+
elseif (LLVM_NATIVE_ARCH MATCHES "loongarch64")
371+
set(LLVM_NATIVE_ARCH LoongArch)
370372
elseif (LLVM_NATIVE_ARCH MATCHES "e2k")
371373
set(LLVM_NATIVE_ARCH E2K)
372374
else ()

cmake/modules/HandleLLVMOptions.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ if( MSVC )
301301

302302
set(msvc_warning_flags
303303
# Disabled warnings.
304-
-wd4146 # Suppress 'unary minus operator applied to unsigned type, result still unsigned'
305304
-wd4180 # Suppress 'qualifier applied to function type has no meaning; ignored'
306305
-wd4244 # Suppress ''argument' : conversion from 'type1' to 'type2', possible loss of data'
307306
-wd4258 # Suppress ''var' : definition from the for loop is ignored; the definition from the enclosing scope is used'

0 commit comments

Comments
 (0)