Commit Graph

443339 Commits

Author SHA1 Message Date
Matt Arsenault 1ab9fa6f0d AMDGPU/GlobalISel: Fix hardcoded virtual register numbers in test 2022-11-28 08:41:31 -05:00
Matt Arsenault 5abcc5b38a PreISelIntrinsicLowering: Convert tests to opaque pointers 2022-11-28 08:41:31 -05:00
Matt Arsenault a42b0ca3b8 SpeculativeExecution: Convert tests to opaque pointers 2022-11-28 08:41:31 -05:00
Matt Arsenault 64539b178f Reg2Mem: Convert tests to opaque pointers 2022-11-28 08:41:31 -05:00
Matt Arsenault 9daaaad9cf Mem2Reg: Convert tests to opaque pointers
This was a painless conversion.
2022-11-28 08:41:31 -05:00
Sam McCall 551c7e8189 [clangd] Fix broken call missed in D138780 2022-11-28 14:36:48 +01:00
Sam McCall c7fc0abf51 [clangd] Add script to maintain list of fast clang-tidy checks
The plan is to intersect this list with the checks selected per config.
This is not yet done, but the initial list is checked in as a baseline.

https://github.com/clangd/clangd/issues/1337

Differential Revision: https://reviews.llvm.org/D138491
2022-11-28 14:29:23 +01:00
David Sherwood 36141ca0b3 [SVE] Tidy up the bfloat matmul instruction classes
It doesn't really make sense for the bfloat matmul to derive
from sve_bfloat_dot_base, especially since it's not used
anywhere else.

Differential Revision: https://reviews.llvm.org/D138787
2022-11-28 13:17:12 +00:00
Louis Dionne 5888e5aebc [libc++][NFC] Remove stray whitespace in string_view 2022-11-28 08:04:15 -05:00
Louis Dionne df942d5692 [libc++][NFC] Use using declaration instead of typedef in string_view 2022-11-28 08:04:09 -05:00
Guray Ozen 135977c92a [mlir] Export `collapseGenericOpIterationDims` (NFC)
This revision exports `collapseGenericOpIterationDims` to a header so it can be used outside of the pattern.  We have use-case where we want to call this function directly.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D138697
2022-11-28 13:54:26 +01:00
Sam McCall 99b5ec1fd1 [include-cleaner] Merge 2 parseIWYUPragma impls in libToolingInclusions
Based on include-cleaner's version, but:

- remove assert that can fail for input `/\<newline>* */`
- assert was also checking the wrong condition: that the prefix *differed* from
  either `//` or from `/*`. Avoid use of strncmp where we can.
- add a comment that the brittleness of the text matching is intentional

Differential Revision: https://reviews.llvm.org/D138780
2022-11-28 13:20:09 +01:00
OCHyams 285d46ef4b [Assignment Tracking][SROA] Follow-up for failing test
Follow-up for D133296 / e16d59973f

Buildbot example: https://lab.llvm.org/buildbot/#/builders/6/builds/16989
2022-11-28 12:16:37 +00:00
Balazs Benics dbb94b415a [analyzer] Remove the unused LocalCheckers.h header 2022-11-28 13:08:38 +01:00
gonglingqin a2d10bda18 [LoongArch] Add atomic ordering information for binary atomic operations
This patch also implements not emit fence in atomic binary operation
when AtomicOrdering is monotonic and fixes the issue of loading from
non ptr parameters.

The processing of other levels of AtomicOrdering will be added later.

Differential Revision: https://reviews.llvm.org/D138481
2022-11-28 19:51:20 +08:00
Sander de Smalen 7f01737687 [AArch64][AsmParser] SME: Allow h/v suffix to be upper-case. 2022-11-28 11:42:43 +00:00
OCHyams e16d59973f [Assignment Tracking][13/*] Account for assignment tracking in SROA
The Assignment Tracking debug-info feature is outlined in this RFC:

https://discourse.llvm.org/t/
rfc-assignment-tracking-a-better-way-of-specifying-variable-locations-in-ir

Split dbg.assign intrinsics into fragments similarly to what SROA already does
for dbg.declares, except that there's many more intrinsics to split. The
function migrateDebugInfo generates new dbg.assigns intrinsic for each part of
a split store.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D133296
2022-11-28 11:31:59 +00:00
David Stuttard 7940888c59 [AMDGPU] Intrinsic to expose s_wait_event for export ready
Differential Revision: https://reviews.llvm.org/D138216
2022-11-28 11:26:15 +00:00
Hassnaa Hamdi 60ab791aa0 [AArch64][SME]: Generate streaming-compatible code for fp-compares.
To generate code compatible to streaming mode:
 - enable expanding ISD::SETUEQ to avoid custom-lowering setcc to setcc_merge_zero
   which cause a crash while instruction selection because there is no pattern match for it.

- Testing files:
 - fp-compares.ll

Differential Revision: https://reviews.llvm.org/D138670
2022-11-28 11:21:40 +00:00
Bjorn Pettersson 2cb02f2385 [Mem2Reg] Switch tests to use opt -passes
Also added FileCheck verification to three old tests that only
verified that we did not crash.
2022-11-28 12:12:49 +01:00
Bjorn Pettersson 076cda0aaa [clang][CodeGen] Switch tests to use opt -passes 2022-11-28 12:12:49 +01:00
Ivan Kosarev 536b8c5377 [AMDGPU][AsmParser] Remove the now-unused OptionalOperand structure.
Became unused in https://reviews.llvm.org/D138492 .
2022-11-28 11:00:05 +00:00
Max Kazantsev 0b74cb4231 [SCEV] Introduce field for storing SymbolicMaxNotTaken. NFCI
ritht is initialized with either exact (if available) or
with constant max exit count. In the future, this can be improved.

Hypothetically this is not an NFC (it is possible that exact is not
known and max is known for a particular exit), but for how we use
it now it seems be an NFC (or at least I could not find an example
where it differs). constant max exit count. In the future, this can
be improved.

Differential Revision: https://reviews.llvm.org/D138699
Reviewed By: lebedev.ri
2022-11-28 17:07:33 +07:00
Lorenzo Chelini baca3b382b [MLIR] Simplify logic in `parseDynamicIndexList` (NFC)
We can use `parseCommaSeparatedList` to simplify the logic of
`parseDynamicIndexList`. We don't need to explicitly check delimiters
and comma anymore, this is done for us by `parseCommaSeparatedList`.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D138694
2022-11-28 11:02:09 +01:00
Guillaume Chatelet 702126aec5 [NFC] Add helper method to ensure min alignment on MCSection
Follow up on D138653.

Differential Revision: https://reviews.llvm.org/D138686
2022-11-28 10:00:34 +00:00
Bjorn Pettersson 99c47d9e31 Remove TargetMachine::adjustPassManager
Since opt no longer supports to run default (O0/O1/O2/O3/Os/Oz)
pipelines using the legacy PM, there are no in-tree uses of
TargetMachine::adjustPassManager remaining. This patch removes the
no longer used adjustPassManager functions.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D137796
2022-11-28 10:24:16 +01:00
Haojian Wu 962343a979 [include-cleaner] Fix walkUsed only report a single macro ref. 2022-11-28 10:12:10 +01:00
Sam McCall 2c1fa73459 Reland "[Lex] Fix suggested spelling of /usr/bin/../include/foo"
This reverts commit 1dc0a1e5d2.

Failures were caused by unintentional conversion to native slashes by
remove_dots, so undo that: we always suggest posix slashes for includes.

This could potentially be a change in behavior on windows if people were
spelling headers with backslashes and headermaps contained backslashes,
but that's all underspecified and I don't think anyone uses headermaps
on windows.

Differential Revision: https://reviews.llvm.org/D138709
2022-11-28 10:09:13 +01:00
Viktoriia Bakalova 10d183b889 [include-cleaner] Capture private headers in PragmaIncludes.
Save file IDs of IWYU private headers and report them as private.

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D138678
2022-11-28 10:02:02 +01:00
Nicolas Vasilache 6e92d3fead [mlir][Test] Add a test pass to act as a sink towards LLVM conversion
This allows writing simple e2e tests where we can check for the proper materialization
of specific LLVM IR (e.g. `llvm.intr.fmuladd`).

Differential Revision: https://reviews.llvm.org/D138776
2022-11-28 00:59:55 -08:00
Zain Jaffal 6e4cea55f0 [AArch64] Fix cost model for `udiv` instruction when one of the operands is a uniform constant
Currently the model over estimates the cost of a udiv instruction with one constant. The correct cost for a udiv instruction is
insert_cost * extract_cost * num_elements

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D135991
2022-11-28 10:38:17 +02:00
Guillaume Chatelet f5dd9dda63 Remove support for 10.4 Tiger from AsmPrinter
I stumbled on this while trying to tighten Alignment in MCStreamer (D138705).
From the [wikipedia page](https://en.wikipedia.org/wiki/Mac_OS_X_Tiger), last release of MacOSX Tiger was released 15 years ago and is not supported anymore by Apple.

Relevant commit : 9f06f911d1 (diff-17b326b45ef392288420bed274616afa7df81b27576c96723b3c25f5198dc398)

Differential Revision: https://reviews.llvm.org/D138707
2022-11-28 08:31:49 +00:00
Vitaly Buka bc0ae48382 [test][asan] Speedup the test 2022-11-27 23:44:29 -08:00
Vitaly Buka 4880a48ab2 [NFC][asan] Fix typo in names 2022-11-27 23:42:10 -08:00
Vitaly Buka cef078a89d [NFC][asan] Reimplement with FindBadAddress 2022-11-27 23:00:42 -08:00
Vitaly Buka 450ec77037 [NFC][asan] Move a few precondition checks 2022-11-27 23:00:42 -08:00
Zi Xuan Wu (Zeson) e52a41d0a2 [CSKY][NFC] Fix the compiling error of CSKYAsmPrinter.cpp
emitValueToAlignment API changes the interface to use Align object to
wrap integer.
2022-11-28 13:49:11 +08:00
Fangrui Song a273c40820 llvm/tools: Convert tests to opaque pointers 2022-11-27 20:20:04 -08:00
Fangrui Song 270f63b84a MC: Convert tests to opaque pointers 2022-11-27 20:10:29 -08:00
Fangrui Song f01fdd17b4 lld: Convert tests to opaque pointers 2022-11-27 20:06:48 -08:00
Fangrui Song 4e4c89a16e LTO: Convert tests to opaque pointers 2022-11-27 19:51:46 -08:00
Fangrui Song d5d3eb16b7 ThinLTO: Convert tests to opaque pointers 2022-11-27 19:49:43 -08:00
Fangrui Song fc1270dd29 SanitizerCoverage: Convert tests to opaque pointers 2022-11-27 19:36:00 -08:00
Matt Arsenault 256d5ad3e8 LowerMatrixIntrinsics: Convert tests to opaque pointers
store-align-volatile.ll needed manually updated check lines for a
-NEXT check after a deleted bitcast.

Also avoided breaking the example C++ comment in remarks-inlining.ll
2022-11-27 21:42:25 -05:00
Matt Arsenault 5e3a5d163d HotColdSplit: Convert tests to opaque pointers
For some reason the script was deleting the assume declaration in
assumption-cache-invalidation.ll, so fixed that manually.
2022-11-27 21:42:00 -05:00
Matt Arsenault 06612123dc NaryReassociate: Convert tests to opaque pointers
NVPTX/nary-gep.ll had one test that checked for a deleted bitcast
which needed to be updated manually.
2022-11-27 21:41:53 -05:00
Matt Arsenault bcabf0a51f StraightLineStrengthReduce: Convert tests to opaque pointers
Required some manual updates in AMDGPU/pr23975.ll and
slsr-gep.ll. pr23975.ll had another offset 0 GEP that probably should
not have been deleted.
2022-11-27 21:29:33 -05:00
Matt Arsenault 0d2271bb44 SampleProfile: Convert tests to opaque pointers
syntax.ll required removing some diffs that apparently looked like
pointers in message checking.
2022-11-27 21:27:50 -05:00
Matt Arsenault 1c55cc600e PhaseOrdering: Convert tests to opaque pointers
Required manually running update_test_checks:
  AArch64/hoisting-sinking-required-for-vectorization.ll
  AArch64/peel-multiple-unreachable-exits-for-vectorization.ll
  ARM/arm_mult_q15.ll
  X86/hoist-load-of-baseptr.ll
  X86/spurious-peeling.ll
2022-11-27 21:26:41 -05:00
Matt Arsenault 3dc20f0160 Scalarizer: Convert tests to opaque pointers 2022-11-27 21:26:20 -05:00