FailedChanges

Summary

  1. [ELF][AVR] Add explicit relocation types to getRelExpr (details)
  2. [mlir][tosa] Remove tosa.identityn operator (details)
  3. Suppress Deferred Diagnostics in discarded statements. (details)
  4. [flang] Fix standalone builds (details)
  5. [mlir-lsp-server] Add support for sending diagnostics to the client (details)
  6. [mlir-lsp-server][NFC] Add newline between Protocol JSON serialization methods and class definitions. (details)
  7. Fix bad mangling of <data-member-prefix> for a closure in the initializer of a variable at global namespace scope. (details)
  8. [RISCV] Remove RISCVII:VSEW enum. Make encodeVYPE operate directly on SEW. (details)
  9. [WebAssembly] Allow Wasm EH with Emscripten SjLj (details)
  10. [WebAssembly] Add TLS data segment flag: WASM_SEG_FLAG_TLS (details)
  11. [lld][WebAssembly] Allow data symbols to extend past end of segment (details)
Commit a8053399cde847dfce88d7d1fa2a2099f3a58c40 by i
[ELF][AVR] Add explicit relocation types to getRelExpr
The file was modifiedlld/ELF/Arch/AVR.cpp
Commit 4b014352308f7244b86438fff7c61c632934a1ff by rob.suderman
[mlir][tosa] Remove tosa.identityn operator

Removes the identityn operator from TOSA MLIR definition.
Removes TosaToLinAlg mappings

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D102329
The file was modifiedmlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
The file was modifiedmlir/test/Dialect/Tosa/ops.mlir
The file was modifiedmlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
The file was modifiedmlir/docs/Dialects/TOSA.md
The file was modifiedmlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
Commit 08ba9ce1ef7214623d4104e72d817c73644a0884 by erich.keane
Suppress Deferred Diagnostics in discarded statements.

It doesn't really make sense to emit language specific diagnostics
in a discarded statement, and suppressing these diagnostics results in a
programming pattern that many users will feel is quite useful.

Basically, this makes sure we only emit errors from the 'true' side of a
'constexpr if'.

It does this by making the ExprEvaluatorBase type have an opt-in option
as to whether it should visit discarded cases.

Differential Revision: https://reviews.llvm.org/D102251
The file was modifiedclang/lib/AST/Stmt.cpp
The file was modifiedclang/include/clang/AST/Stmt.h
The file was modifiedclang/include/clang/AST/EvaluatedExprVisitor.h
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/test/SemaCUDA/deferred-diags.cu
Commit 30b7dfafdb620420ad3498aae01130bc7e2fb9cd by smeenai
[flang] Fix standalone builds

Flang's CMake modules directory was being added to the CMake module path
twice, and AddFlang was being included after the first addition. Remove
the unnecessary first addition and move the AddFlang include down to the
second one. This way, it occurs after LLVM's CMake modules have been
included for a standalone build, so it can make use of those modules.
The file was modifiedflang/CMakeLists.txt
Commit b3911cdfc89f3b560fc00048d6f99280268fa63c by riddleriver
[mlir-lsp-server] Add support for sending diagnostics to the client

This allows for diagnostics emitted during parsing/verification to be surfaced to the user by the language client, as opposed to just being emitted to the logs like they are now.

Differential Revision: https://reviews.llvm.org/D102293
The file was modifiedmlir/lib/Tools/mlir-lsp-server/lsp/Transport.h
The file was addedmlir/test/mlir-lsp-server/diagnostics.test
The file was modifiedmlir/lib/Tools/mlir-lsp-server/lsp/Protocol.h
The file was modifiedmlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
The file was modifiedmlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
The file was modifiedmlir/lib/Tools/mlir-lsp-server/lsp/Transport.cpp
The file was modifiedmlir/lib/Parser/AsmParserState.cpp
The file was modifiedmlir/lib/Tools/mlir-lsp-server/lsp/Protocol.cpp
The file was modifiedmlir/include/mlir/Parser/AsmParserState.h
The file was modifiedmlir/lib/Tools/mlir-lsp-server/MLIRServer.h
Commit 29ac15ab380b6d9853d4cdc9c220107e90375cb9 by riddleriver
[mlir-lsp-server][NFC] Add newline between Protocol JSON serialization methods and class definitions.
The file was modifiedmlir/lib/Tools/mlir-lsp-server/lsp/Protocol.h
Commit 5bb7e81c64bd29edd1c9ebadd4e4717919def0bf by richard
Fix bad mangling of <data-member-prefix> for a closure in the initializer of a variable at global namespace scope.

This implements the direction proposed in
https://github.com/itanium-cxx-abi/cxx-abi/pull/126.

Differential Revision: https://reviews.llvm.org/D101968
The file was modifiedclang/test/CodeGenCXX/clang-abi-compat.cpp
The file was modifiedclang/include/clang/Basic/CodeGenOptions.h
The file was modifiedclang/lib/AST/ItaniumMangle.cpp
The file was modifiedclang/test/CodeGenCXX/mangle-lambda-explicit-template-params.cpp
The file was modifiedclang/test/CodeGenCXX/lambda-expressions-nested-linkage.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/include/clang/Basic/LangOptions.h
Commit 9c345407b4999e62e51667927f531b891363569b by craig.topper
[RISCV] Remove RISCVII:VSEW enum. Make encodeVYPE operate directly on SEW.

The VSEW encoding isn't a useful value to pass around. It's better
to use SEW or log2(SEW) directly. The only real ugliness is that
the vsetvli IR intrinsics use the VSEW encoding, but it's easy
enough to decode that when the intrinsic is processed.
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Commit ba38b72ec2833bf8c54829a0fd7a8c968e6260d4 by aheejin
[WebAssembly] Allow Wasm EH with Emscripten SjLj

We explicitly made it error out in D101403, out of a good intention that
the error message will make people less confusing. Turns out, we weren't
failing all cases of wasm EH + SjLj; only a few cases were failing and
our client was able to get around by fixing source code, but now we made
it fail for all cases, even the cases that previously succeeded fail,
which we didn't intend. This reverts that change.

Reviewed By: tlively

Differential Revision: https://reviews.llvm.org/D102364
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/lower-em-ehsjlj-options.ll
Commit 3041b16f7322a0392810e4a14b13cacac1929ad8 by sbc
[WebAssembly] Add TLS data segment flag: WASM_SEG_FLAG_TLS

Previously the linker was relying solely on the name of the segment
to imply TLS.

Differential Revision: https://reviews.llvm.org/D102202
The file was modifiedllvm/lib/MC/MCSectionWasm.cpp
The file was modifiedllvm/lib/ObjectYAML/WasmYAML.cpp
The file was modifiedllvm/lib/MC/MCParser/WasmAsmParser.cpp
The file was modifiedllvm/include/llvm/BinaryFormat/Wasm.h
The file was modifiedllvm/test/CodeGen/WebAssembly/tls-general-dynamic.ll
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/tls-local-exec.ll
The file was modifiedllvm/test/MC/WebAssembly/tls.s
The file was modifiedlld/wasm/InputChunks.h
The file was modifiedlld/test/wasm/tls.s
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/target-features-tls.ll
Commit cd01430ff13b5441bc71e6dc3c4e688052f7be82 by sbc
[lld][WebAssembly] Allow data symbols to extend past end of segment

This fixes a bug with string merging with string symbols that contain
NULLs, as is the case in the `merge-string.s` test.

The bug only showed when we run with `--relocatable` and then try read
the resulting object back in.  In this case we would end up with string
symbols that extend past the end of the segment in which they live.

The problem comes from the fact that sections which are flagged as
string mergable assume that all strings are NULL terminated.  The
merging algorithm will drop trailing chars that follow a NULL since they
are essentially unreachable.  However, the "size" attribute (in the
symbol table) of such a truncated symbol is not updated resulting a
symbol size that can overlap the end of the segment.

I verified that this can happen in ELF too given the right conditions
and the its harmless enough.  In practice Strings that contain embedded
null should not be part of a mergable section.

Differential Revision: https://reviews.llvm.org/D102281
The file was modifiedllvm/lib/Object/WasmObjectFile.cpp
The file was modifiedlld/test/wasm/merge-string.s
The file was addedllvm/test/Object/wasm-bad-data-symbol.yaml