Commit Graph

443458 Commits

Author SHA1 Message Date
Matt Arsenault 5171712bb2 HeapProfiler: Convert tests to opaque pointers
Needed to manually fix masked-load-store.ll.
2022-11-28 09:32:09 -05:00
Matt Arsenault c441bfb714 AMDGPU: Convert debug info tests to opaque pointers 2022-11-28 09:31:21 -05:00
Teresa Johnson 311801a017 Revert "[MemProf] Defer profile file setup until dump time"
This reverts commit ea1826ee57.

This change is breaking the ability of tests to override the profile
output file. Need to add a mechanism to do that before resubmitting.
2022-11-28 06:29:24 -08:00
Matt Arsenault d9e51e7552 CodeGenPrepare: Convert most tests to opaque pointers
NVPTX/dont-introduce-addrspacecast.ll required manually removing a check for
a bitcast.

AArch64/combine-address-mode.ll required rerunning update_test_checks

Mips required some manual updates due to a CHECK-NEXT coming after a
deleted bitcast.

ARM/sink-addrmode.ll needed one small manual fix.

Excludes one X86 function which needs more attention.
2022-11-28 09:21:59 -05:00
Corentin Jabot 2903769bf5 Update the list of double width codepoints
All east asian width wide and full-width codepoints
are considered double width, as well as emojis and
symbols commonely rendered as emoji.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D138518
2022-11-28 15:13:37 +01:00
Matt Arsenault 9e5fa4b405 ScalarizeMaskedMemIntrin: Convert tests to opaque pointers
This was as easy as running the script and running
update_test_checks. I did notice the pass produces some GEPs with 0
indexes, such that running the opaquify script a second time produces
a diff.
2022-11-28 09:08:31 -05:00
Matt Arsenault db4fff9255 LowerInvoke: Convert tests to opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault 048831ef74 LowerGuardIntrinsic: Convert tests to opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault c353d8f49b LowerGlobalDestructors: Convert tests to opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault 393759933c DivRemPairs: Convert tests to use opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault 47f25462c8 LowerExpectIntrinsic: Convert tests to opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault e472cf7f10 LowerConstantIntrinsics: Convert tests to opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault d17f4f267d HardwareLoops: Convert tests to opaque pointers 2022-11-28 09:08:31 -05:00
Matt Arsenault b1dbc0a24c PartialInlining: Convert tests to opaque pointers
Once again the script decided to delete an llvm.assume declaration
which I manually restored.
2022-11-28 09:08:30 -05:00
Louis Dionne b938b8702f [libc++][NFC] Rename include guards under /support/
For consistency with the rest of the code base.
2022-11-28 09:04:33 -05:00
Matt Arsenault 143ca74ed3 AtomicExpand: Convert tests to opaque pointers 2022-11-28 08:43:16 -05:00
Matt Arsenault a198d2041e Sink: Convert tests to opaque pointers 2022-11-28 08:42:52 -05:00
Matt Arsenault 8c58a9ace0 DivergenceAnalysis: Convert tests to opaque pointers 2022-11-28 08:42:38 -05:00
Matt Arsenault 833557a6e4 DCE: Update tests to use opaque pointers
basic.ll:test_lifetime_bitcast is a strange case. The comment says
it's trying to keep the lifetime intrinsics for bitcasts. Leave a
dummy bitcast for now to keep it happy.
2022-11-28 08:42:06 -05:00
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