Changes from Git (git http://labmaster3.local/git/llvm-project.git)


  1. [GlobalISel][InlineAsm] Add support for basic input operand constraints (details)
  2. [mlir] Fix the example for std.rank (details)
  3. [clangd] Only emit default error/fatal diagnostices from included files. (details)
  4. [llvm-dwarfdump] Make commandline arguments consistent. (details)
  5. [lldb] Don't dissasemble large functions by default (details)
  6. [lldb] Switch Section-dumping code to raw_ostream (details)
  7. [LLD] [COFF] Add options for disabling auto import and runtime pseudo relocs (details)
Commit 91063cf85a4038537731f582a27936187fb0759c by
[GlobalISel][InlineAsm] Add support for basic input operand constraints

Reviewers: arsenm, dsanders, aemerson, volkan, t.p.northover, paquette

Reviewed By: arsenm

Subscribers: gargaroff, wdng, rovka, hiraditya, llvm-commits

Tags: #llvm

Differential Revision:
The file was modifiedllvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/irtranslator-inline-asm.ll
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/InlineAsmLowering.h
Commit 9ffaba86e5b33b9f7e919bc5da8a36390bb816ee by herhut
[mlir] Fix the example for std.rank

The assembly format for std.rank expects the operand type and not the
result type after the colon.

Differential Revision:
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/
Commit dbc9e1c39aed43e6faa6b29caeed7bc5b43569f1 by hokein.wu
[clangd] Only emit default error/fatal diagnostices from included files.

This would avoid adding too much noise when there is a "-Wall" in the
compile command.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision:
The file was modifiedclang-tools-extra/clangd/Diagnostics.cpp
The file was modifiedclang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
Commit 2974b3c566d68f1d7c907f891137cf0292dd35aa by Xing
[llvm-dwarfdump] Make commandline arguments consistent.

Currently, llvm-dwarfdump's help message has two issues.

1. Most long options are printed in `--long-option`, except for some section dumping options, e.g., `-apple-names`, `-debug-addr`.

2. Most options are printed with consistent indention, except for some section dumping options.

This patch helps resolve these two issues.

Reviewed By: jhenderson

Differential Revision:
The file was modifiedllvm/test/tools/llvm-dwarfdump/cmdline.test
The file was modifiedllvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Commit f665e80c023ec52557f55d7eeaf34471e4c6fa0d by pavel
[lldb] Don't dissasemble large functions by default

If we have a binary without symbol information (and without
LC_FUNCTION_STARTS, if on a mac), then we have to resort to using
heuristics to determine the function boundaries. However, these don't
always work, and so we can easily end up thinking we have functions
which are several megabytes in size. Attempting to (accidentally)
disassemble these can take a very long time spam the terminal with
thousands of lines of disassembly.

This patch works around that problem by adding a sanity check to the
disassemble command. If we are about to disassemble a function which is
larger than a certain threshold, we will refuse to disassemble such a
function unless the user explicitly specifies the number of instructions
to disassemble, uses start/stop addresses for disassembly, or passes the
(new) --force argument.

The threshold is currently fairly aggressive (4000 bytes ~~ 1000
instructions). If needed, we can increase it, or even make it

Differential Revision:
The file was modifiedlldb/test/Shell/Commands/command-disassemble-process.yaml
The file was modifiedlldb/test/Shell/Commands/Inputs/command-disassemble.lldbinit
The file was modifiedlldb/source/Commands/CommandObjectDisassemble.h
The file was modifiedlldb/source/Commands/CommandObjectDisassemble.cpp
The file was modifiedlldb/source/Commands/
The file was modifiedlldb/test/Shell/Commands/command-disassemble.s
Commit 3a16829748a1ed208a37c719d3a3bcca50dcbd0f by pavel
[lldb] Switch Section-dumping code to raw_ostream

Also, add a basic test for dumping sections.
The file was modifiedlldb/source/API/SBSection.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
The file was addedlldb/test/Shell/Commands/command-target-modules-dump-sections.yaml
The file was modifiedlldb/source/Core/Section.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
The file was modifiedlldb/source/Commands/CommandObjectTarget.cpp
The file was modifiedlldb/include/lldb/Core/Section.h
The file was modifiedlldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
The file was modifiedlldb/source/Core/Address.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/wasm/ObjectFileWasm.cpp
The file was modifiedlldb/source/Target/SectionLoadList.cpp
Commit 7f0e6c31c25530352aa6e4cd9e2bdc4381368eba by martin
[LLD] [COFF] Add options for disabling auto import and runtime pseudo relocs

Allow disabling either the full auto import feature, or just
forbidding the cases that require runtime fixups.

As long as all auto imported variables are referenced from separate
.refptr$<name> sections, we can alias them on top of the IAT entries
and don't actually need any runtime fixups via pseudo relocations.
LLVM generates references to variables in .refptr stubs, if it
isn't known that the variable for sure is defined in the same object
module. Runtime pseudo relocs are needed if the addresses of auto
imported variables are used in constant initializers though.

Fixing up runtime pseudo relocations requires the use of
VirtualProtect (which is disallowed in WinStore/UWP apps) or
VirtualProtectFromApp. To allow any risk of ambiguity, allow
rejecting cases that would require this at the linker stage.

This adds support for the --disable-runtime-pseudo-reloc and
--disable-auto-import options in the MinGW driver (matching GNU ld.bfd)
with corresponding lld private options in the COFF driver.

Differential Revision:
The file was modifiedlld/COFF/Driver.cpp
The file was modifiedlld/test/COFF/autoimport-x86.s
The file was modifiedlld/COFF/SymbolTable.cpp
The file was modifiedlld/test/MinGW/driver.test
The file was modifiedlld/MinGW/
The file was modifiedlld/COFF/Writer.cpp
The file was modifiedlld/MinGW/Driver.cpp
The file was modifiedlld/test/COFF/autoimport-refptr.s
The file was modifiedlld/COFF/Config.h
The file was modifiedlld/COFF/