Skip to content

Commit a9436b8

Browse files
authored
Merge branch 'llvm:main' into feature/extend-macros
2 parents a69ceba + 4e330fa commit a9436b8

File tree

47 files changed

+543
-215
lines changed

Some content is hidden

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

47 files changed

+543
-215
lines changed

.github/new-prs-labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,12 @@ llvm:ir:
587587
- llvm/docs/LangRef.rst
588588
- llvm/unittests/IR/**
589589

590+
llvm:SandboxIR:
591+
- llvm/lib/SandboxIR/**
592+
- llvm/include/llvm/SandboxIR/**
593+
- llvm/docs/SandboxIR.md
594+
- llvm/unittests/SandboxIR/**
595+
590596
llvm:analysis:
591597
- llvm/lib/Analysis/**
592598
- llvm/include/llvm/Analysis/**

clang/cmake/caches/Fuchsia-stage2.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
329329
foreach(lang C;CXX;ASM)
330330
# TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
331331
# These should be addressed and removed over time.
332-
set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "--target=${target} -mthumb -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dtimeval=struct timeval{int tv_sec; int tv_usec;}\" \"-Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1")
332+
set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "--target=${target} -mthumb -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1")
333333
if(${target} STREQUAL "armv8m.main-none-eabi")
334334
set(RUNTIMES_${target}_CMAKE_${lang}_local_flags "${RUNTIMES_${target}_CMAKE_${lang}_local_flags} -mfloat-abi=softfp -march=armv8m.main+fp+dsp -mcpu=cortex-m33" CACHE STRING "")
335335
endif()
@@ -340,7 +340,6 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
340340
endforeach()
341341
set(RUNTIMES_${target}_LLVM_LIBC_FULL_BUILD ON CACHE BOOL "")
342342
set(RUNTIMES_${target}_LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "")
343-
set(RUNTIMES_${target}_LIBC_USE_NEW_HEADER_GEN OFF CACHE BOOL "")
344343
set(RUNTIMES_${target}_LIBCXX_ABI_VERSION 2 CACHE STRING "")
345344
set(RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "")
346345
set(RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
@@ -385,14 +384,13 @@ foreach(target riscv32-unknown-elf)
385384
foreach(lang C;CXX;ASM)
386385
# TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
387386
# These should be addressed and removed over time.
388-
set(RUNTIMES_${target}_CMAKE_${lang}_FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dtimeval=struct timeval{int tv_sec; int tv_usec;}\" \"-Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1" CACHE STRING "")
387+
set(RUNTIMES_${target}_CMAKE_${lang}_FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f -Wno-atomic-alignment \"-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \"-Dfprintf(stream, format, ...)=printf(format)\" \"-Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1" CACHE STRING "")
389388
endforeach()
390389
foreach(type SHARED;MODULE;EXE)
391390
set(RUNTIMES_${target}_CMAKE_${type}_LINKER_FLAGS "-fuse-ld=lld" CACHE STRING "")
392391
endforeach()
393392
set(RUNTIMES_${target}_LLVM_LIBC_FULL_BUILD ON CACHE BOOL "")
394393
set(RUNTIMES_${target}_LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "")
395-
set(RUNTIMES_${target}_LIBC_USE_NEW_HEADER_GEN OFF CACHE BOOL "")
396394
set(RUNTIMES_${target}_LIBCXX_ABI_VERSION 2 CACHE STRING "")
397395
set(RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "")
398396
set(RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ void tools::checkAMDGPUCodeObjectVersion(const Driver &D,
27102710

27112711
unsigned tools::getAMDGPUCodeObjectVersion(const Driver &D,
27122712
const llvm::opt::ArgList &Args) {
2713-
unsigned CodeObjVer = 4; // default
2713+
unsigned CodeObjVer = 5; // default
27142714
if (auto *CodeObjArg = getAMDGPUCodeObjectArgument(D, Args))
27152715
StringRef(CodeObjArg->getValue()).getAsInteger(0, CodeObjVer);
27162716
return CodeObjVer;

clang/lib/Sema/SemaOpenACC.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ bool checkValidAfterDeviceType(
434434
// This is only a requirement on compute and loop constructs so far, so this
435435
// is fine otherwise.
436436
if (!isOpenACCComputeDirectiveKind(NewClause.getDirectiveKind()) &&
437+
!isOpenACCCombinedDirectiveKind(NewClause.getDirectiveKind()) &&
437438
NewClause.getDirectiveKind() != OpenACCDirectiveKind::Loop)
438439
return false;
439440

clang/test/Driver/hip-device-libs.hip

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,12 @@
157157
// Test default code object version.
158158
// RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=gfx900 \
159159
// RUN: --rocm-path=%S/Inputs/rocm %S/Inputs/hip_multiple_inputs/b.hip \
160-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ABI4
160+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ABI5
161161

162162
// Test default code object version with old device library without abi_version_400.bc
163163
// RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=gfx900 \
164-
// RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode-no-abi-ver \
164+
// RUN: -mcode-object-version=4 \
165+
// RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode-no-abi-ver \
165166
// RUN: --rocm-path=%S/Inputs/rocm %S/Inputs/hip_multiple_inputs/b.hip \
166167
// RUN: 2>&1 | FileCheck %s --check-prefixes=NOABI4
167168

0 commit comments

Comments
 (0)