SuccessChanges

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

Summary

  1. [mlir][spirv] Update SPIR-V documentation with information about (details)
  2. [TargetLowering] Use SETCC input type to call getBooleanContents instead (details)
  3. [Clang] Force rtlib=platform in test to avoid fails with (details)
  4. [Metadata] Add TBAA struct metadata to `AAMDNode` (details)
  5. [APFloat] Add recoverable string parsing errors to APFloat (details)
  6. Add ExternalAAWrapperPass to createLegacyPMAAResults. (details)
  7. [mlir] Update mlir/CMakeLists.txt to install *.def files (details)
  8. [APFloat] Fix compilation warnings (details)
  9. Add interface emitPrefix for MCCodeEmitter (details)
  10. [ARM][MVE] More MVETailPredication debug messages. NFC. (details)
  11. Fix MSVC "not all control paths return a value" warning. NFCI. (details)
  12. [NFC] Fix trivial typos in comments (details)
  13. [test][DebugInfo][NFC] Rename method for clarity (details)
  14. [DAG] DAGCombiner::XformToShuffleWithZero - use APInt::extractBits (details)
  15. [CostModel][X86] Add missing scalar i64->f32 uitofp costs (details)
  16. [X86] Add extra PR43971 test case mentioned in D70267 (details)
  17. [clang-format] fix conflict between FormatStyle::BWACS_MultiLine and (details)
  18. [mlir][Linalg] Reimplement and extend getStridesAndOffset (details)
  19. AMDGPU/GlobalISel: Select more G_EXTRACTs correctly (details)
  20. [lldb] [Process/NetBSD] Remove unused orig_*ax use (details)
  21. AMDGPU/GlobalISel: Select scalar v2s16 G_BUILD_VECTOR (details)
Commit 8aae6455c074af5ad9a2fe4e68079cfc591359ab by ravishankarm
[mlir][spirv] Update SPIR-V documentation with information about
lowering to SPIR-V dialect.
Add information about
- SPIRVTypeConverter
- SPIRVOpLowering
- Utility functions used in lowering to SPIR-V dialect.
The file was modifiedmlir/docs/Dialects/SPIR-V.md
Commit 19ace449a3da4058428495283b3b15826f8d7d34 by craig.topper
[TargetLowering] Use SETCC input type to call getBooleanContents instead
of the setcc result type.
This isn't a functonal change since we also check the bit width is the
same and the input type is integer. This guarantees the input and output
type are the same. But passing the input type makes the code more
readable.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Commit ce67db4185374016a9f5745869f9dbedfc12e6d2 by Kristina Brooks
[Clang] Force rtlib=platform in test to avoid fails with
CLANG_DEFAULT_RTLIB
Driver test `cross-linux.c` fails when CLANG_DEFAULT_RTLIB is
"compiler-rt" as the it expects a GCC-style `"crtbegin.o"` after
`"crti.o"` but instead receives something akin to this in the frontend
invocation:
```
"crt1.o" "crti.o"
"/o/b/llvm/bin/../lib/clang/10.0.0/lib/linux/clang_rt.crtbegin-x86_64.o"
```
This patch adds an override to `cross-linux.c` tests so the expected
result is produced regardless of the compile-time default rtlib, as
having tests fail due to that is fairly confusing. After applying the
patch, the test passes regardless of the CLANG_DEFAULT_RTLIB setting.
Differential Revision: https://reviews.llvm.org/D72236
The file was modifiedclang/test/Driver/cross-linux.c
Commit a7929533300535547f8484f7e38765234a7e7c93 by anton.a.afanasyev
[Metadata] Add TBAA struct metadata to `AAMDNode`
Summary: Make `AAMDNodes`' `getAAMetadata()` and `setAAMetadata()` to
take `!tbaa.struct` into account as well as `!tbaa`. This impacts
llvm.org/pr42022. This is a temprorary fix needed to keep `!tbaa.struct`
tag by SROA pass. New field `TBAAStruct` should be deleted when `!tbaa`
tag replaces `!tbaa.struct`. Merging two `!tbaa.struct`'s to one is
conservatively considered to be `nullptr`
(giving `MayAlias`) -- this could be enhanced, but relying on the said
future replacement.
Reviewers: RKSimon, spatel, vporpo
Subscribers: hiraditya, kosarev, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70924
The file was modifiedllvm/test/Transforms/SROA/tbaa-struct.ll
The file was modifiedllvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
The file was modifiedllvm/include/llvm/IR/Metadata.h
The file was modifiedllvm/lib/IR/Metadata.cpp
Commit c5fb73c5d1b3f1adb77d99fc85c594b48bff08f9 by ehudkatz
[APFloat] Add recoverable string parsing errors to APFloat
Implementing the APFloat part in PR4745.
Differential Revision: https://reviews.llvm.org/D69770
The file was modifiedllvm/unittests/ADT/APFloatTest.cpp
The file was modifiedllvm/include/llvm/ADT/APFloat.h
The file was modifiedllvm/lib/Support/StringRef.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
The file was modifiedllvm/lib/MC/MCParser/AsmParser.cpp
The file was modifiedclang/lib/Lex/LiteralSupport.cpp
The file was modifiedllvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
The file was modifiedllvm/lib/Support/APFloat.cpp
Commit 103a58c8f2b0a62a42f6eedcdef38222ff22a538 by neil.henning
Add ExternalAAWrapperPass to createLegacyPMAAResults.
Our out-of-tree custom aliasing solution for the HPC# Burst compiler
here at Unity makes use of the `ExternalAAwrapperPass` infrastructure to
insert our custom aliasing resolution into the core of LLVM. This is
great for all cases except for function inlining, where because
`createLegacyPMAAResults` does not make use of `ExternalAAWrapperPass`,
when we have a definite no-alias result within a function it won't be
propagated to the calling function during inlining.
This commit just rectifies this oversight by adding the missing
dependency.
Differential Revision: https://reviews.llvm.org/D71348
The file was modifiedllvm/lib/Analysis/AliasAnalysis.cpp
Commit aab72f89b19ae38ea7ac3b7b51aae68fc10aef4f by zinenko
[mlir] Update mlir/CMakeLists.txt to install *.def files
This is needed to consume mlir after it has been installed of the source
tree. Without this, consuming mlir results a build error.
Differential Revision: https://reviews.llvm.org/D72232
The file was modifiedmlir/CMakeLists.txt
Commit f3f7dc3d2990151a78b246a7a1485d0c13a9fb36 by ehudkatz
[APFloat] Fix compilation warnings
The file was modifiedllvm/lib/Support/StringRef.cpp
The file was modifiedllvm/lib/Support/APFloat.cpp
The file was modifiedllvm/unittests/ADT/APFloatTest.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/MagicNumbersCheck.cpp
The file was modifiedclang/lib/Lex/LiteralSupport.cpp
Commit 5173bfcbc4873fa12d14de0a0a4e6ac9ce960b5e by shengchen.kan
Add interface emitPrefix for MCCodeEmitter
Differential Revision: https://reviews.llvm.org/D72047
The file was modifiedllvm/include/llvm/MC/MCCodeEmitter.h
The file was modifiedllvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
Commit 0efc9e5a8cc12b9cb30adf2a3dbb14ffbc60e338 by sjoerd.meijer
[ARM][MVE] More MVETailPredication debug messages. NFC.
I've added a few more debug messages to MVETailPredication because I
wanted to trace better which instructions are added/removed. And while I
was at it, I factored out one function which I thought was clearer, and
have added some comments to describe better the flow between
MVETailPredication and ARMLowOverheadLoops.
Differential Revision: https://reviews.llvm.org/D71549
The file was modifiedllvm/lib/Target/ARM/MVETailPredication.cpp
The file was modifiedllvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
Commit 7180d9568df7d9198a75cfb5a156d9e60329794a by llvm-dev
Fix MSVC "not all control paths return a value" warning. NFCI.
The file was modifiedclang-tools-extra/clang-tidy/utils/FixItHintUtils.cpp
Commit d68904f957ae1f9b2309bdbf34258387c045ce27 by jh7370
[NFC] Fix trivial typos in comments
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D72143
Patch by Kazuaki Ishizaki.
The file was modifiedllvm/include/llvm/Transforms/IPO/Attributor.h
The file was modifiedllvm/bindings/ocaml/llvm/llvm.mli
The file was modifiedllvm/utils/TableGen/CodeGenTarget.cpp
The file was modifiedllvm/include/llvm/DebugInfo/GSYM/FunctionInfo.h
The file was modifiedllvm/test/LTO/X86/parallel.ll
The file was modifiedllvm/tools/llvm-objdump/MachODump.cpp
The file was modifiedllvm/lib/MC/MCExpr.cpp
The file was modifiedllvm/unittests/Analysis/VectorFunctionABITest.cpp
The file was modifiedllvm/lib/CodeGen/TwoAddressInstructionPass.cpp
The file was modifiedllvm/test/CodeGen/X86/DynamicCalleeSavedRegisters.ll
The file was modifiedllvm/lib/Target/Hexagon/HexagonRegisterInfo.td
The file was modifiedllvm/lib/Target/X86/X86InstrAVX512.td
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
The file was modifiedllvm/include/llvm/Support/Allocator.h
The file was modifiedllvm/include/llvm/IR/InstrTypes.h
The file was modifiedllvm/lib/Target/AArch64/AArch64CallLowering.cpp
The file was modifiedllvm/test/Transforms/SCCP/apint-basictest3.ll
The file was modifiedllvm/test/CodeGen/X86/swifterror.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
The file was modifiedllvm/test/CodeGen/X86/2010-02-19-TailCallRetAddrBug.ll
The file was modifiedllvm/unittests/Analysis/VectorUtilsTest.cpp
The file was modifiedllvm/lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp
The file was modifiedllvm/include/llvm/ADT/PointerUnion.h
The file was modifiedllvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
The file was modifiedllvm/lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.h
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
The file was modifiedllvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
The file was modifiedllvm/lib/Target/AMDGPU/R600AsmPrinter.cpp
The file was modifiedllvm/utils/bugpoint/RemoteRunSafely.sh
The file was modifiedllvm/lib/MC/MCAssembler.cpp
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
The file was modifiedllvm/include/llvm/Target/Target.td
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/OrcABISupport.h
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was modifiedllvm/lib/MC/MCParser/COFFAsmParser.cpp
The file was modifiedllvm/include/llvm/Analysis/ValueTracking.h
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/align.ll
The file was modifiedllvm/lib/Target/ARM/ARMCallingConv.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64RegisterInfo.td
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
The file was modifiedllvm/test/MC/AArch64/arm64-directive_loh.s
The file was modifiedllvm/lib/Transforms/IPO/PartialInlining.cpp
The file was modifiedllvm/unittests/Target/WebAssembly/WebAssemblyExceptionInfoTest.cpp
The file was modifiedllvm/tools/llvm-c-test/echo.cpp
The file was modifiedllvm/lib/CodeGen/Analysis.cpp
The file was modifiedllvm/lib/Target/Mips/MipsInstrFPU.td
The file was modifiedllvm/test/Transforms/DeadArgElim/naked_functions.ll
The file was modifiedllvm/utils/TableGen/CodeGenTarget.h
The file was modifiedllvm/lib/Bitcode/Reader/MetadataLoader.cpp
The file was modifiedllvm/include/llvm/DebugInfo/GSYM/GsymCreator.h
The file was modifiedllvm/test/CodeGen/X86/masked_gather_scatter.ll
The file was modifiedllvm/test/CodeGen/X86/lea.ll
The file was modifiedllvm/test/MC/ARM/misaligned-blx.s
The file was modifiedllvm/lib/Transforms/Utils/AddDiscriminators.cpp
Commit 89b11843254a4a0d7581b8c625fc0b40dfaf0235 by jh7370
[test][DebugInfo][NFC] Rename method for clarity
The checkGetOrParseLineTableEmitsError function could end up generating
both recoverable and unrecoverable errors, but it is only intended for
handling the latter.
Reviewed by: dblaikie
Differential Revision: https://reviews.llvm.org/D72156
The file was modifiedllvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
Commit 6fa6000e3e2bb582c6a8509c34b52ecd44fbf625 by llvm-dev
[DAG] DAGCombiner::XformToShuffleWithZero - use APInt::extractBits
helper. NFCI.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Commit 5d986a68a59c9bed7060e87840e61390d8247c1d by llvm-dev
[CostModel][X86] Add missing scalar i64->f32 uitofp costs
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/X86/uitofp.ll
Commit de735247c8b638efa8ce5783ac8c7c2e0b7cf3eb by llvm-dev
[X86] Add extra PR43971 test case mentioned in D70267
The file was modifiedllvm/test/CodeGen/X86/extractelement-load.ll
Commit d45aafa2fbcf66f3dafdc7c5e0a0ce3709914cbc by mitchell
[clang-format] fix conflict between FormatStyle::BWACS_MultiLine and
BeforeCatch/BeforeElse
Summary: Found a bug introduced with BraceWrappingFlags
AfterControlStatement MultiLine. This feature conflicts with the
existing BeforeCatch and BeforeElse flags.
For example, our team uses BeforeElse.
if (foo ||
   bar) {
doSomething();
} else {
doSomethingElse();
}
If we enable MultiLine (which we'd really love to do) we expect it to
work like this:
if (foo ||
   bar)
{
doSomething();
} else {
doSomethingElse();
}
What we actually get is:
if (foo ||
   bar)
{
doSomething();
} else
{
doSomethingElse();
}
Reviewers: MyDeveloperDay, Bouska, mitchell-stellar
Patch by: pastey
Subscribers: Bouska, cfe-commits
Tags: clang
Differential Revision: https://reviews.llvm.org/D71939
The file was modifiedclang/lib/Format/UnwrappedLineFormatter.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit d67c4cc2eb4ddc450c886598b934c111e721ab0c by ntv
[mlir][Linalg] Reimplement and extend getStridesAndOffset
Summary: This diff reimplements getStridesAndOffset in a significantly
simpler way by operating on the AffineExpr and calling into
simplifyAffineExpr instead of rolling its own saturating arithmetic.
As a consequence it becomes quite simple to extend the behavior of
getStridesAndOffset to encompass more cases by manipulating the
AffineExpr more directly. The divisions are still filtered out and
continue to yield fully dynamic strides. Simplifying the divisions is
left for a later time if compelling use cases arise.
Relevant tests are added.
Reviewers: ftynse
Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen,
antiagainst, arpith-jacob, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72098
The file was modifiedmlir/test/AffineOps/memref-stride-calculation.mlir
The file was modifiedmlir/lib/IR/StandardTypes.cpp
Commit f1c85ecdfcc3b1c3500ab91ac7c1fb9d2cd8aa78 by arsenm2
AMDGPU/GlobalISel: Select more G_EXTRACTs correctly
This assumed a 32-bit extract size, which would produce invalid copies
with 64-bit extracts. Handle the easy case. Ideally we would have a way
to get the proper subreg index for any 32-bit offset, but there should
probably be a tablegenerated way of getting the subreg index for any
size and offset.
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-extract.mir
Commit bc763c42bbcf830ad4e543ddc8c39cd146790176 by mgorny
[lldb] [Process/NetBSD] Remove unused orig_*ax use
orig_*ax logic is Linux-specific, and was never used on NetBSD. In fact,
its support seems to be a dead code entirely.
Differential Revision: https://reviews.llvm.org/D72195
The file was modifiedlldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp
Commit e4464bf3d45848461630e3771d66546d389f1ed5 by arsenm2
AMDGPU/GlobalISel: Select scalar v2s16 G_BUILD_VECTOR
The file was modifiedllvm/lib/Target/AMDGPU/SIInstructions.td
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-build-vector.v2s16.mir
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
The file was modifiedllvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructions.td