SuccessChanges

Summary

  1. Fix -Wdocumentation warnings. NFCI. (details)
  2. * Add support for JSON output style to llvm-symbolizer (details)
  3. [flang][cmake] Enable the new driver by default (details)
  4. [WebAssembly] Support for WebAssembly globals in LLVM IR (details)
  5. [VP] Improve the VP intrinsic unittests (details)
  6. [CodeGen][WebAssembly] Better lowering for WASM_SYMBOL_TYPE_GLOBAL symbols (details)
  7. [LLD] [COFF] Add an assert regarding the RVA of exported symbols. NFC. (details)
  8. [MLIR] Switch llvm.noalias to a unit attribute (details)
  9. [AMDGPU] Add some GFX10.3 testing. NFC. (details)
  10. [RegAllocFast] properly handle STATEPOINT instruction. (details)
  11. [PowerPC][Bug] Fix Bug in Stack Frame Update Code (details)
  12. [LLDB] Don't use the local python to set a default for LLDB_PYTHON_RELATIVE_PATH when cross compiling. (details)
  13. [libomptarget][nfc] Drop stringify in macro (details)
Commit 33399405f4423429ec92c98a116c9ddc486864ec by llvm-dev
Fix -Wdocumentation warnings. NFCI.
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMPConstants.h
Commit 05d1ae4e18fa565ea522e02d2497ec68d1dbdd80 by aorlov
* Add support for JSON output style to llvm-symbolizer

This patch adds JSON output style to llvm-symbolizer to better support CLI automation by providing a machine readable output.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D96883
The file was addedllvm/test/tools/llvm-symbolizer/output-style-json-code.test
The file was modifiedllvm/include/llvm/DebugInfo/Symbolize/DIPrinter.h
The file was modifiedllvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
The file was addedllvm/test/tools/llvm-symbolizer/output-style-json-frame.ll
The file was modifiedllvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
The file was modifiedllvm/tools/llvm-symbolizer/Opts.td
The file was addedllvm/test/tools/llvm-symbolizer/output-style-json-data.test
The file was modifiedllvm/docs/CommandGuide/llvm-symbolizer.rst
Commit 04adfb660987072ad31756e0d04803f96c3c39f7 by andrzej.warzynski
[flang][cmake] Enable the new driver by default

With this patch, `FLANG_BUILD_NEW_DRIVER` is set to `On` by default
(i.e. the new driver is enabled). Note that the new driver depends on
Clang and hence with this change you will need to add `clang` to
`LLVM_ENABLE_PROJECTS`.

If you don't want to build the new driver, set `FLANG_BUILD_NEW_DRIVER`
to `Off`. This way you won't be required to include `clang` in
`LLVM_ENABLE_PROJECTS`.

Differential Revision: https://reviews.llvm.org/D101842
The file was modifiedflang/README.md
The file was modifiedflang/CMakeLists.txt
The file was modifiedllvm/CMakeLists.txt
Commit d7086af2143d58a6535e0837c4d8789c69c6985f by wingo
[WebAssembly] Support for WebAssembly globals in LLVM IR

This patch adds support for WebAssembly globals in LLVM IR, representing
them as pointers to global values, in a non-default, non-integral
address space.  Instruction selection legalizes loads and stores to
these pointers to new WebAssemblyISD nodes GLOBAL_GET and GLOBAL_SET.
Once the lowering creates the new nodes, tablegen pattern matches those
and converts them to Wasm global.get/set of the appropriate type.

Based on work by Paulo Matos in https://reviews.llvm.org/D95425.

Reviewed By: pmatos

Differential Revision: https://reviews.llvm.org/D101608
The file was modifiedllvm/lib/Target/WebAssembly/Utils/WebAssemblyUtilities.h
The file was modifiedclang/test/CodeGen/target-data.c
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
The file was addedllvm/test/CodeGen/WebAssembly/global-set.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
The file was addedllvm/test/CodeGen/WebAssembly/global-get.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISD.def
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyInstrRef.td
The file was modifiedclang/lib/Basic/Targets/WebAssembly.h
Commit b159987054e12ad9f5b5e373249cbdba90047b84 by simon.moll
[VP] Improve the VP intrinsic unittests

Test that all VP intrinsics are tested.
Test intrinsic id -> opcode -> intrinsic id round tripping.
Test property scopes in the include/llvm/IR/VPIntrinsics.def file.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D93534
The file was modifiedllvm/unittests/IR/VPIntrinsicTest.cpp
Commit b2f21b145aecbf5bc1af63b79de395897fc2e6f4 by wingo
[CodeGen][WebAssembly] Better lowering for WASM_SYMBOL_TYPE_GLOBAL symbols

As we have been missing support for WebAssembly globals on the IR level,
the lowering of WASM_SYMBOL_TYPE_GLOBAL to IR was incomplete.  This
commit fleshes out the lowering support, lowering references to and
definitions of addrspace(1) values to correctly typed
WASM_SYMBOL_TYPE_GLOBAL symbols.

Depends on D101608.

Differential Revision: https://reviews.llvm.org/D101913
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.h
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/global-get.ll
The file was modifiedllvm/test/CodeGen/WebAssembly/global-set.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
Commit 518b7f913526b5d002751edfa88869d10f5412fc by martin
[LLD] [COFF] Add an assert regarding the RVA of exported symbols. NFC.

As this isn't handled as a regular relocation, the normal handling of
maybeReportRelocationToDiscarded in Chunks.cpp doesn't apply here.

This would have caught the issue fixed by
82de4e075339f5ad8d68cfe31eb45b771d4750ae.

Differential Revision: https://reviews.llvm.org/D102115
The file was modifiedlld/COFF/DLL.cpp
Commit 1c777ab459d7ee181d7aba62af8bc35a572a2290 by uday
[MLIR] Switch llvm.noalias to a unit attribute

Switch llvm.noalias attribute from a boolean attribute to a unit
attribute.

Differential Revision: https://reviews.llvm.org/D102225
The file was modifiedmlir/lib/Target/LLVMIR/ModuleTranslation.cpp
The file was modifiedmlir/test/Dialect/LLVMIR/invalid.mlir
The file was modifiedmlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
The file was modifiedmlir/test/Target/LLVMIR/llvmir-invalid.mlir
The file was modifiedmlir/test/Dialect/LLVMIR/func.mlir
The file was modifiedmlir/test/Target/LLVMIR/llvmir.mlir
The file was modifiedmlir/test/Conversion/StandardToLLVM/convert-static-memref-ops.mlir
Commit 3b873831c439021da736fdc7c2c54bd0da2869ea by jay.foad
[AMDGPU] Add some GFX10.3 testing. NFC.
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/readcyclecounter.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/readcyclecounter.ll
Commit df47368d406aa4b9aaa7dd49026a0eff9763e6ca by dantrushin
[RegAllocFast] properly handle STATEPOINT instruction.

STATEPOINT is a fancy and complex pseudo instruction which
has both tied defs and regmask operand.

Basic FastRA algorithm is as follows:

1. Mark registers used by defs as free
2. If instruction has regmask operand displace clobbered registers
   according to regmask.
3. Assign registers for use operands.

In case of tied defs step 1 is replaced with allocation of registers
for them. But regmask is still processed, which may displace already
allocated registers. As a result, tied use and def will get assigned
to different registers.

This patch makes FastRA to process instruction's RegMask (if any) when
checking for physical registers interference.
That way tied operands won't get registers clobbered by regmask.

Reviewed By: arsenm, skatkov
Differential Revision: https://reviews.llvm.org/D99284
The file was modifiedllvm/lib/CodeGen/RegAllocFast.cpp
The file was addedllvm/test/CodeGen/X86/statepoint-fastregalloc.mir
Commit c79bc5942d0efd4740c7a6d36ad951c59ef3bc0e by stefanp
[PowerPC][Bug] Fix Bug in Stack Frame Update Code

The stack frame update code does not take into consideration spilling
to registers for callee saved registers. The option -ppc-enable-pe-vector-spills
turns on spilling to registers for callee saved registers and may expose a bug
in the code that moves a stack frame pointer update instruction.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D101366
The file was addedllvm/test/CodeGen/PowerPC/stack_pointer_vec_spills.mir
The file was modifiedllvm/lib/Target/PowerPC/PPCFrameLowering.cpp
Commit 3f03877f5a838973d0d22f6b45c112228319f4da by martin
[LLDB] Don't use the local python to set a default for LLDB_PYTHON_RELATIVE_PATH when cross compiling.

Differential Revision: https://reviews.llvm.org/D101903
The file was modifiedlldb/CMakeLists.txt
Commit dedca78d486e6532ad0d01f670c409c7339e6387 by jonathanchesterfield
[libomptarget][nfc] Drop stringify in macro

[libomptarget][nfc] Drop stringify in macro
A step towards deleting the macros entirely.

Differential Revision: https://reviews.llvm.org/D102228
The file was modifiedopenmp/libomptarget/plugins/amdgpu/impl/internal.h
The file was modifiedopenmp/libomptarget/plugins/amdgpu/src/rtl.cpp
The file was modifiedopenmp/libomptarget/plugins/amdgpu/impl/data.cpp
The file was modifiedopenmp/libomptarget/plugins/amdgpu/impl/system.cpp