Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoBump] Merge with fixes of 85278611 (Needs onnx/torch bump)(Sep 21) (10) #424

Merged
merged 608 commits into from
Jan 6, 2025
Merged
Changes from 2 commits
Commits
Show all changes
608 commits
Select commit Hold shift + click to select a range
9ef9acb
[rtsan] Introduce halt_on_error flag (#109832)
cjappl Sep 25, 2024
4a2d24e
[gn] Reformat build files
nico Sep 25, 2024
e33e087
[MachineSink] Update register dependency correctly (#109763)
ruiling Sep 25, 2024
2495130
[compiler-rt] Add missing carry to 128x128->256 wide multiply (#97257)
beetrees Sep 25, 2024
4fc08b6
Revert "[AMDGPU][GlobalIsel] Use isRegisterClassType for G_FREEZE and…
chapuni Sep 25, 2024
642bfd8
[Clang][compiler-rt][UBSan] Improve `__ubsan_handle_invalid_builtin` …
dtcxzyw Sep 25, 2024
3da5e82
[NVPTX] Fix NVPTXLowerUnreachable::isLoweredToTrap logic (#109730)
duk-37 Sep 25, 2024
0a42c7c
[clang] fix assert in ADL finding entity in the implicit global modul…
mizvekov Sep 25, 2024
7a086e1
[clang][CodeGen] Zero init unspecified fields in initializers in C (#…
yabinc Sep 25, 2024
489acb2
[NVPTX][NFC] Refactor utilities to use std::optional (#109883)
AlexMaclean Sep 25, 2024
4ca4460
[hwasan] Add "-hwasan-with-frame-record" (#109620)
vitalybuka Sep 23, 2024
fa627d9
[flang][cuda] Add entry point for alloc/free and simple copy (#109867)
clementval Sep 25, 2024
18b9d49
lldb: get lldb API tests working with newer Android NDKs
andrurogerz Sep 25, 2024
d50eaac
Revert "[clang][CodeGen] Zero init unspecified fields in initializers…
efriedma-quic Sep 25, 2024
81dac7d
[Flang][OpenMP] Add Semantic Checks for Atomic Capture Construct (#10…
harishch4 Sep 25, 2024
cfe1adc
Reland: [DirectX] Add atan2 intrinsic and expand for DXIL backend (p1…
tex3d Sep 25, 2024
b218048
[hwasan] Consider order of mapping copts (#109621)
vitalybuka Sep 25, 2024
3b8c78a
[RISCV] Enable f16 vget/vset/vcreate/vlmul_ext/vlmul_trunc/vundefined…
topperc Sep 25, 2024
d0878f1
[RISCV] Use RVVBitsPerBlock in assignRVVStackObjectOffsets and adjust…
topperc Sep 25, 2024
74d9f7c
[llvm] Use std::optional::value_or (NFC) (#109890)
kazutakahirata Sep 25, 2024
c92137e
[NFC][TableGen] Adopt scaled indent in PredicateExpander (#109801)
jurahul Sep 25, 2024
614aeda
[RISCV] Mark Zacas as non-experimental (#109651)
asb Sep 25, 2024
f586b1e
[MLIR] Make `OneShotModuleBufferize` use `OpInterface` (#107295)
Sep 25, 2024
470e5af
[bazel] Port f586b1e3f42788025aa6f55be70c5e361cc8b529 (#109908)
keith Sep 25, 2024
e1365ce
[clang][bytecode][NFC] Add type assertions to ArrayElem{,Pop} (#109829)
tbaederr Sep 25, 2024
915fe84
[ctx_prof] Simplify ingestContext (NFC) (#109902)
kazutakahirata Sep 25, 2024
fa824dc
[LLVM][IR] Add constant range support for floating-point types (#86483)
dtcxzyw Sep 25, 2024
d8f555d
[UBSan] Diagnose assumption violation (#104741)
dtcxzyw Sep 25, 2024
4bd3a62
[clang][bytecode] Fix diagnosing std::construct_at with wrong type (#…
tbaederr Sep 25, 2024
416f101
[clang] Use std::optional::value_or (NFC) (#109894)
kazutakahirata Sep 25, 2024
c2fd3b7
[ASan][test] XFAIL stack overflow tests on Linux/sparc64 (#109773)
rorth Sep 25, 2024
1cb12fa
[GlobalISel] Combine unmerge(unmerge()) if the result is legal. (#109…
davemgreen Sep 25, 2024
1cdcec5
[clang][bytecode] Handle vector comma op (#109827)
yronglin Sep 25, 2024
832297c
Fix compatibility version in test (#97128)
zygoloid Sep 25, 2024
c08a437
[GlobalISel] Fix a warning
kazutakahirata Sep 25, 2024
a6ea0b0
[compiler-rt] intercept macOs's freadlink call. (#83679)
devnexen Sep 25, 2024
df6822f
[lldb] Fix error reporting in SBTarget::ReadMemory (#109764)
labath Sep 25, 2024
7c825f0
[gn build] Port fa824dc0dd96
llvmgnsyncbot Sep 25, 2024
d7c6e94
[AMDGPU][StructurizeCFG] pre-commit tests: maintain branch_weights me…
jmmartinez Sep 25, 2024
90c1474
[SDAG] Honor signed arguments in floating point libcalls (#109134)
tpearson-ssc Sep 25, 2024
ae7b454
Revert "[MLIR] Make `OneShotModuleBufferize` use `OpInterface`" (#109…
matthias-springer Sep 25, 2024
2ccac07
[C++20][Modules] Fix crash when function and lambda inside loaded fro…
dmpolukhin Sep 25, 2024
0259f92
[mlir][memref] Add builder that infers `reinterpret_cast` result type…
matthias-springer Sep 25, 2024
b7b945b
LiveRangeCalc: Pass output stream to verify
arsenm Sep 25, 2024
8e3cde0
[LoongArch][test] Add float-point atomic load/store tests. NFC
heiher Sep 25, 2024
4f90e75
[AMDGPU] Do not count implicit VGPRs in SIInsertWaitcnts (#109049)
rampitec Sep 25, 2024
cda0cb3
[NFC][LoopVectorize] Remove unused argument from fixupIVUsers (#109789)
david-arm Sep 25, 2024
b8d1bae
[CmpInstAnalysis] Return decomposed bit test as struct (NFC) (#109819)
nikic Sep 25, 2024
c58e51a
[ConstantFPRange] Suppress unused result warnings. NFC. (#109921)
dtcxzyw Sep 25, 2024
99cd4cb
[LLD][MINGW] Add `--undefined-glob` flag support (#109866)
mayanez Sep 25, 2024
ba3d174
[FuzzMutate] Avoid repeated hash lookups (NFC) (#109903)
kazutakahirata Sep 25, 2024
ec60030
[DWARFLinker] Avoid repeated hash lookups (NFC) (#109904)
kazutakahirata Sep 25, 2024
c3fc763
[MCA] Avoid repeated hash lookups (NFC) (#109905)
kazutakahirata Sep 25, 2024
a36aca5
[sancov] Avoid repeated map lookups (NFC) (#109906)
kazutakahirata Sep 25, 2024
850ee79
[Bazel] Port fa824dc0dd960214865b03d8f56b18bb93e4a88b
steelannelida Sep 25, 2024
d853ade
[MIR] Fix return value when computed properties conflict with given p…
gargaroff Sep 25, 2024
53907ed
[clang][codegen] Don't mark "int" TBAA on FP libcalls with indirect a…
MacDue Sep 25, 2024
445d8b2
[Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (#97755)
CarolineConcatto Sep 25, 2024
5a191e3
[RISCV][test] Correct +experimental-ztso attr to +ztso in test
asb Sep 25, 2024
f1bbabd
[ARM] Lower arm_neon_vbsl to ARMISD::VBSP and fold (vbsl x, y, y) to …
davemgreen Sep 25, 2024
bbb3679
[SPIRV] Fix compilation error 'use of parameter from containing funct…
VyacheslavLevytskyy Sep 25, 2024
706821b
[lldb][test] Skip TestConcurrentVFork on all Linux
DavidSpickett Sep 25, 2024
c93e294
[lldb] fix vFile:open, vFile:unlink error codes (#106950)
dlav-sc Sep 25, 2024
4d45913
[llvm][docs] Update the project and runtimes lists (#109788)
DavidSpickett Sep 25, 2024
b7ea264
[llvm][docs] Fix RISCVUsage docs build error
DavidSpickett Sep 25, 2024
02f46d7
Revert "[Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instructi…
CarolineConcatto Sep 25, 2024
5ee2dea
[lldb][AArch64][Linux] Add Floating Point Mode Register (#106695)
DavidSpickett Sep 25, 2024
5a03823
[llvm][cmake] Error when a runtime is in LLVM_ENABLE_PROJECTS and LLV…
DavidSpickett Sep 25, 2024
c71b212
ProfDataUtils: Avoid dyn_extract + assert (NFC)
arsenm Sep 25, 2024
0ef24aa
Fix for logic in combineExtract() (#108208)
JonPsson1 Sep 25, 2024
0c31ea5
[Clang][SME2] Use tuple result of SME builtins directly. (#109423)
paulwalker-arm Sep 25, 2024
ce6c236
[ADT][NFC] Simplify SmallSet (#109412)
vhscampos Sep 25, 2024
e4688b9
[SimplifyCFG] Avoid increasing too many phi entries when removing emp…
Chengjunp Sep 25, 2024
de70b95
[AMDGPU] Fix typo in promoteUniformOpToI32 (#109942)
Pierre-vh Sep 25, 2024
8ea0dba
[mlir] Remove spurious CMake dependencies for convert-vector-to-llvm …
joker-eph Sep 25, 2024
63b534b
[RISCV] Fold vmv.x.s into load from stack (#109774)
lukel97 Sep 25, 2024
f43ad88
[RISCV] Handle zvfhmin and zvfbfmin promotion to f32 in half arith co…
lukel97 Sep 25, 2024
4f95150
Reland "[AMDGPU][GlobalIsel] Use isRegisterClassType for G_FREEZE and…
sstipano Sep 25, 2024
dc2d0d5
[Xtensa] Add basic support for inline asm constraints. (#108986)
andreisfr Sep 25, 2024
f5838cc
[clang-tools-extra] Don't flush llvm::raw_string_ostream (NFC)
JOE1994 Sep 25, 2024
b40ff5a
[AMDGPU][StructurizeCFG] Maintain branch MD_prof metadata (#109813)
jmmartinez Sep 25, 2024
9583215
[RISCV] Add splat tests for zvfbfmin and without zfhmin/zfbfmin. NFC
lukel97 Sep 25, 2024
2a29d24
[ADT] Use perfect forwarding in SmallSet::insert() (#108590)
vhscampos Sep 25, 2024
786dc5a
[lldb-dap] Simplify `readMemory` (#109485)
vogelsgesang Sep 25, 2024
1c984b8
[LLVM][TableGen] Adopt !listflatten for Intrinsic type signature (#10…
jurahul Sep 25, 2024
fe06a6d
Reland: [clang] Diagnose dangling issues for the "Container<GSLPointe…
hokein Sep 25, 2024
59693ea
[ConstantFPRange] Remove `ConstantFPRange::toKnownFPClass` (#109960)
dtcxzyw Sep 25, 2024
1e67e4b
[SystemZ][z/OS] z/OS does not support nanosleep, use usleep instead (…
abhina-sree Sep 25, 2024
5ef02a3
[InstCombine] Fall through to computeKnownBits() for sdiv by -1
nikic Sep 25, 2024
60ed236
[LV][EVL]Explicitly model AVL as sub, original TC, EVL_PHI.
alexey-bataev Sep 25, 2024
ab0e8d0
[AMDGPU] Fix failing test after #109958 (#109964)
sstipano Sep 25, 2024
8e9011b
[LV][NFC]Fix formatting
alexey-bataev Sep 25, 2024
fd88121
[rtsan] Link in proper CXX ABI library (#109715)
cjappl Sep 25, 2024
4be1c19
[VPlan] Adjust AnyOf after creating ComputeReductionResult (NFC).
fhahn Sep 25, 2024
3f37c51
[NFC] Switch a number of DenseMaps to SmallDenseMaps for speedup (#10…
jmorse Sep 25, 2024
817e742
Revert "[NFC] Switch a number of DenseMaps to SmallDenseMaps for spee…
jmorse Sep 25, 2024
02c138f
[AArch64] Implement intrinsics for SME2 FSCALE (#100128)
Lukacma Sep 25, 2024
35ae7ee
Remove spurious ; in ElimAvailExtern.cpp
mtrofin Sep 25, 2024
22829f7
[PS4,PS5][Driver] Fix typo in comment (NFC) (#109980)
playstation-edd Sep 25, 2024
cd6f4cc
[LLD][COFF][NFC] Use CHPE version 2 in tests (#109872)
cjacek Sep 25, 2024
3477eb7
[rtsan][NFC] Move away from system include style for local headers (#…
cjappl Sep 25, 2024
e9cb440
[X86][GlobalISel] Enable scalar versions of G_UITOFP and G_FPTOUI (#1…
e-kud Sep 25, 2024
aea0668
[lldb][test] Use tools from llvm instead of compiler tools (#109961)
dzhidzhoev Sep 25, 2024
3469db8
[SLP]Add subvector vectorization for non-load nodes
alexey-bataev Sep 25, 2024
d288574
[TTI][RISCV] Model cost of loading constants arms of selects and comp…
preames Sep 25, 2024
26e0b50
[lldb][lldb-dap] Fix compilation error on 32 bit platforms
DavidSpickett Sep 25, 2024
ac802a3
[libc][math] Implement issignaling macro. (#109615)
Sh0g0-1758 Sep 25, 2024
a514457
Mark tests as unsupported when targeting z/OS (#107916)
perry-ca Sep 25, 2024
6b109a3
[SLP]Initial support for non-power-of-2 (but still whole register) nu…
alexey-bataev Sep 25, 2024
6fae8b8
[rtsan][NFC] Rename RTSAN_LINK_LIBS to RTSAN_DYNAMIC_LIBS (#109991)
cjappl Sep 25, 2024
3be8e3a
[flang] translate pure and elemental attribute in FIR (#109954)
jeanPerier Sep 25, 2024
a024a0c
[clang][bytecode] Override InConstantContext flag for immediate calls…
tbaederr Sep 25, 2024
74dcf0b
[SystemZ][z/OS] Open text files in text mode (#109972)
abhina-sree Sep 25, 2024
9a0e281
Revert "[NVVM] Upgrade nvvm.ptr.* intrinics to addrspace cast (#109710)"
steelannelida Sep 25, 2024
4cb61c2
Revert "[NVPTX] deprecate nvvm.rotate.* intrinsics, cleanup funnel-sh…
steelannelida Sep 25, 2024
9718949
The real option name and not the alias used is displayed in msgs when…
perry-ca Sep 25, 2024
11c423f
[clang-tidy] Add support for bsl::optional (#101450)
ccotter Sep 25, 2024
88945db
[AMDGPU][SIPreEmitPeephole] pre-commit tests: mustRetainExeczBranch: …
jmmartinez Sep 25, 2024
808c498
Revert "[libc][math] Implement issignaling macro." (#109992)
lntue Sep 25, 2024
556ec4a
[SLP] Pass operand info to getCmpSelInstrInfo (#109998)
preames Sep 25, 2024
aae7ac6
[VPlan] Remove VPIteration, update to use directly VPLane instead (NFC)
fhahn Sep 25, 2024
fff03b0
Fix "[AArch64] Implement intrinsics for SME2 FSCALE" (#109999)
Lukacma Sep 25, 2024
d01e336
[Driver] Enable ASan on Solaris/SPARC (#107403)
rorth Sep 25, 2024
cebb7c0
[clang-tidy] modernize-use-nullptr matches "NULL" in templates (#109169)
tkoeppe Sep 25, 2024
78c6506
[libc++] Disable the clang-tidy checks to get CI back (#109989)
ldionne Sep 25, 2024
1c1bb77
[libc++abi] Fix issue when building the demangler in C++11
ldionne Sep 25, 2024
660ddb3
[PS4,PS5][Driver] Pass `-L<sdk>/target/lib -L.` to linker (#109796)
playstation-edd Sep 25, 2024
a280275
[compiler-rt] Fix #83679 for macos sdk < 13.0 (#109946)
devnexen Sep 25, 2024
b3b6141
[lldb] Fix two formatv issues in LDB_LOG (NFC)
JDevlieghere Sep 25, 2024
72307ba
[ELF] Pass Ctx & to Driver
MaskRay Sep 25, 2024
3c348bf
[RISCV] Fold (fmv_x_h/w (load)) to an integer load. (#109900)
topperc Sep 25, 2024
abe0dd1
[llvm-objdump] Print ... even if a data mapping symbol is active
MaskRay Sep 25, 2024
b1aea98
[clang] Make deprecations of some `FileManager` APIs formal (#110014)
jansvoboda11 Sep 25, 2024
394f59c
[NVPTX] Add Read/Write/SideEffect attributes to atomic instructions (…
LewisCrawford Sep 25, 2024
eba21ac
[SandboxIR][Utils] Implement getMemoryLocation() (#109724)
vporpo Sep 25, 2024
f172c31
[RISCV] Lower memory ops and VP splat for zvfhmin and zvfbfmin (#109387)
lukel97 Sep 25, 2024
c71bfc5
[clang] Fix FileManagerTest
jansvoboda11 Sep 25, 2024
0f52193
LLVMContext: add getSyncScopeName() to lookup individual scope name (…
gonzalobg Sep 25, 2024
c3334da
[rtsan] Add exit statistics (#109885)
cjappl Sep 25, 2024
2f43e65
[LLVM][TableGen] Check name conflicts between target dep and independ…
jurahul Sep 25, 2024
6786928
[Core] Skip over target name in intrinsic name lookup (#109971)
jurahul Sep 25, 2024
1911a50
Deprecate the `-fbasic-block-sections=labels` option. (#107494)
rlavaee Sep 25, 2024
639a0af
Revert "Deprecate the `-fbasic-block-sections=labels` option. (#107494)"
kazutakahirata Sep 25, 2024
2b125e8
[LV] Don't pass loop preheader to getOrCreateVectorTripCount (NFCI).
fhahn Sep 25, 2024
b935d31
[libc][math] Reapply and fix issignaling macro. (#110011)
Sh0g0-1758 Sep 25, 2024
8588c6e
[gn build] Port eba21accf221
nico Sep 25, 2024
eb48aac
[Clang] Automatically link the `compiler-rt` for GPUs if present (#10…
jhuber6 Sep 25, 2024
c3201dd
[flang][NFC] Refactor to remove .inc file containing shared code (#10…
tarunprabhu Sep 25, 2024
29b92d0
Revert "[SLP]Initial support for non-power-of-2 (but still whole regi…
nikic Sep 25, 2024
7645d9c
[mlir][scf] Fix loop iteration calculation for negative step in LoopP…
sjw36 Sep 25, 2024
7e5df5b
[SandboxIR] Implement Module (#109716)
vporpo Sep 25, 2024
924b390
[gn build] Port 7e5df5bcc3be
llvmgnsyncbot Sep 25, 2024
6fb39ac
[BOLT][merge-fdata] Initialize YAML profile header (#109613)
maksfb Sep 25, 2024
b856c9f
[sanitizer] Extract SANITIZER_FREEBSD version of ThreadDescriptorSize…
vitalybuka Sep 25, 2024
fea1596
[llvm][cmake] Do not emit error on `libc`'s use of project + runtime …
jhuber6 Sep 25, 2024
1bfca99
[SLP]Initial support for non-power-of-2 (but still whole register) nu…
alexey-bataev Sep 25, 2024
4db0cc4
[BOLT] Allow sections in --print-only flag (#109622)
maksfb Sep 25, 2024
c8365fe
[ctx_prof] Simple ICP criteria during module inliner (#109881)
mtrofin Sep 25, 2024
eab63b5
[libc] Fix %m on CPUs with float128 but no int128 (#110053)
michaelrj-google Sep 25, 2024
e7d68c9
[libc] Fix errno_macros.h include paths. (#110057)
michaelrj-google Sep 25, 2024
5103910
[SandboxIR] Add more functions to sandboxir:Instruction class. (#110050)
tmsri Sep 25, 2024
a068b97
[VPlan] Implement VPWidenLoad/StoreEVLRecipe::computeCost(). (#109644)
ElvisWang123 Sep 25, 2024
3e65c30
[Lint][AMDGPU] No store to const addrspace (#109181)
jofrn Sep 25, 2024
cf1de0a
[RISCV] Reuse Factor variable instead of hardcoding 2 in other places…
topperc Sep 25, 2024
13809b3
[SandboxIR] Fix failing unittest introduced by 51039101cf32
vporpo Sep 25, 2024
9bc26e9
[NVPTX] Support !"cluster_dim_{x,y,z}" metadata (#109548)
AlexMaclean Sep 25, 2024
165a912
[SandboxIR][NFC] Move Context class into a separate file (#110049)
vporpo Sep 26, 2024
0813c76
[gn build] Port 165a912807ee
llvmgnsyncbot Sep 26, 2024
661666d
[AMDGPU] Move renamedInGFX9 from TableGen to SIInstrInfo helper funct…
CRobeck Sep 26, 2024
0f85c3e
[libc] Fix missing dependency on the nvlink-wrapper (#110056)
jhuber6 Sep 26, 2024
4ffb747
[SPIR-V][NFC] More efficient getPaddedLen (#105823)
bwlodarcz Sep 26, 2024
3d424e8
[SPIR-V] Support for multiple DebugCompilationUnit in DI (#109645)
bwlodarcz Sep 26, 2024
f4fa16f
[Clang] Bugfixes and improved support for `AttributedType`s in lambda…
Sirraide Sep 26, 2024
3d01af7
[nfc][ctx_prof] Remove unnecessary include
mtrofin Sep 26, 2024
2b0a708
[Clang] Set target in test (#110068)
Sirraide Sep 26, 2024
e237d8a
[BOLT] Fix tests broken by abe0dd1 (#110071)
tex3d Sep 26, 2024
14b567d
[X86][IPRA] Add getIPRACSRegs since frame registers are risked to be …
FreddyLeaf Sep 26, 2024
a96876f
[X86] Fix missing immediate qualifier in #108593 (#110072)
phoebewang Sep 26, 2024
3d04695
[lldb] fix one-off error in vformat specifier
jasonmolenda Sep 26, 2024
bd592b1
[RISCV] Minor cleanups to lowerInterleaveIntrinsicToStore and lowerDe…
topperc Sep 26, 2024
0f98497
[lldb] [Mach-O corefiles] Sanity check malformed dyld
jasonmolenda Sep 26, 2024
7b7747d
Reapply "Deprecate the `-fbasic-block-sections=labels` option." (#110…
rlavaee Sep 26, 2024
a7550e1
[ELF] Pass Ctx & to Driver
MaskRay Sep 26, 2024
23487be
[AMDGPU] Merge the conditions used for deciding CS spills for amdgpu_…
cdevadas Sep 26, 2024
fde3c16
[mlir][LLVM] Add operand bundle support (#108933)
Lancern Sep 26, 2024
571a867
[mlir] Fix a warning
kazutakahirata Sep 26, 2024
781cb10
[TSan] fix the module map of main executable on darwin platforms (#10…
pudge62 Sep 26, 2024
f3111cc
[clang][bytecode][NFC] Remove a useless cast
tbaederr Sep 26, 2024
ae54a00
[clang][analyzer] FixedAddressChecker: no warning if system macro is …
balazske Sep 26, 2024
e7569b3
[clang] [Modules] Don't assume an overriden module file can not be ou…
ChuanqiXu9 Sep 26, 2024
57bed5c
[AArch64] Update and regenerate f16-instructions.ll. NFC
davemgreen Sep 26, 2024
c808e66
[DebugInfo] Don't emit .loc directive with all values zero (#109978)
ostannard Sep 26, 2024
2803905
[MLIR][Transform] Hoist Pad generates linalg.transpose (#109669)
nujaa Sep 26, 2024
f661e69
[LLD][COFF] Add support for ARM64EC import call thunks with extended …
cjacek Sep 26, 2024
a059b29
[SPIR-V] Allow intrinsics with aggregate return type to reach GlobalI…
VyacheslavLevytskyy Sep 26, 2024
b860d86
[AArch64][GlobalISel] Regenerate legalize-fp-arith-fp16.mir. NFC
davemgreen Sep 26, 2024
69ef3b1
[flang][debug] Allow variable length for dummy char arguments. (#109448)
abidh Sep 26, 2024
d925006
[flang] add fir.proc_attrs attributes to func.func (#110002)
jeanPerier Sep 26, 2024
056a3f4
[NFC] Reapply 3f37c517f, SmallDenseMap speedups
jmorse Sep 26, 2024
2ad435f
Revert "[clang] Extend diagnose_if to accept more detailed warning in…
kadircet Sep 26, 2024
497523b
[flang][OpenMP] Delayed privatization MLIR lowering support for `dist…
ergawy Sep 26, 2024
9f33eb8
[clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI
mylai-mtk Sep 26, 2024
21ac5c8
[VPlan] Remove duplicated ExtractFromEnd handling from unoll (NFC).
fhahn Sep 26, 2024
0e24611
[lldb][AArch64] Add register fields for the fpmr register (#109934)
DavidSpickett Sep 26, 2024
82ce829
[clang][bytecode] Don't call dtors of anonymous unions (#110087)
tbaederr Sep 26, 2024
100fd0c
[SLP]Fix a crash when trying to identify one source order
alexey-bataev Sep 26, 2024
28439a1
[SCEV] Add tests with non-power-of-2 steps for #108777.
fhahn Sep 26, 2024
f82fb06
[analyzer] Moving TaintPropagation checker out of alpha (#67352)
dkrupp Sep 26, 2024
3eaaf7c
[lldb][AArch64] Fix crash loading core files on 32 bit systems
DavidSpickett Sep 26, 2024
439dcfa
[llvm][ARM][NFC] Renaming FeaturePrefLoopAlignment (#109932)
nasherm Sep 26, 2024
9abf6d3
[analyzer] [MallocChecker] Assume functions with `ownership_returns` …
pskrgag Sep 26, 2024
0b8866d
[clang-tidy] Add user-defined functions to `bugprone-unsafe-function…
Discookie Sep 26, 2024
9e65dca
[clangd] Add some regression tests for clang-tidy finding severities
kadircet Sep 26, 2024
e13cbac
[clang][CodeGen][SPIR-V] Fix incorrect SYCL usage, implement missing …
AlexVlx Sep 26, 2024
a43a298
[RISCV][NFC] Fix typo: ILP64E => LP64E
asb Sep 26, 2024
b9f09a4
[llvm][docs] Convert LLVM release notes to Markdown (#109107)
DavidSpickett Sep 26, 2024
39babbf
[AMDGPU] Implement isSDNodeAlwaysUniform for INTRINSIC_W_CHAIN (#110114)
jayfoad Sep 26, 2024
af7aa22
[MLIR][GPU] Lower subgroup query ops in gpu-to-llvm-spv (#108839)
FMarno Sep 26, 2024
58e8683
[flang][Frontend] Move LangOptions from Frontend to Common (#110012)
kparzysz Sep 26, 2024
3b20a83
[flang][Semantics] Add LangOptions to SemanticsContext (#110013)
kparzysz Sep 26, 2024
00ab44e
[flang][OpenMP] Add version checks for clauses (#110015)
kparzysz Sep 26, 2024
8f21459
[SimplifyCFG] Add additional store speculation tests (NFC)
nikic Sep 26, 2024
95c0e03
[libc] Fix 'fgets' test on the GPU for some C libraries (#110118)
jhuber6 Sep 26, 2024
f9cba2e
[LLVM][TableGen] Change InstrInfoEmitter to use const RecordKeeper (#…
jurahul Sep 26, 2024
3e0d31c
[llvm-dis][NFC] Avoid unnecessary copies while iterating (#109860)
AmrDeveloper Sep 26, 2024
3ea55d3
[clang][bytecode] Add a source location to destructor calls (#110121)
tbaederr Sep 26, 2024
f342134
[CodeGen] Avoid repeated hash lookups (NFC) (#110074)
kazutakahirata Sep 26, 2024
f4b1335
[Mips] Avoid repeated map lookups (NFC) (#110075)
kazutakahirata Sep 26, 2024
ecccc6a
[Coroutines] Avoid repeated hash lookps (NFC) (#110076)
kazutakahirata Sep 26, 2024
6d6d15b
[X86] Avoid repeated hash lookups (NFC) (#110077)
kazutakahirata Sep 26, 2024
d781df2
ValueTracking/test: cover known-high-bits of rem (#109006)
artagnon Sep 26, 2024
6d11494
[mlir][Linalg] Refine how broadcast dims are treated (#99015)
banach-space Sep 26, 2024
9c48a04
[mlir][tensor] Refine the semantics of `createPadHighOp` (#109667)
banach-space Sep 26, 2024
c511cc0
[AArch64] Implement NEON vscale intrinsics (#100347)
Lukacma Sep 26, 2024
24d707e
Fix "[AArch64] Implement NEON vscale intrinsics" (#110136)
Lukacma Sep 26, 2024
f35719f
[lldb] Don't flush llvm::raw_string_ostream (NFC) (#110128)
JOE1994 Sep 26, 2024
784e0cf
[Driver][test] Replace legacy -target with --target=
MaskRay Sep 26, 2024
b52885b
[mlir] Use std::optional::value_or (NFC) (#109893)
kazutakahirata Sep 26, 2024
0215579
[Flang][Offload][Tests] Set default OpenMP version to 5.2 (52) (#110138)
agozillon Sep 26, 2024
bc6bd3b
[libc++][modules] Rewrite the modulemap to have fewer top-level modul…
ldionne Sep 26, 2024
fbec1c2
[NFC][CodeLayout] Remove unused parameter (#110145)
ellishg Sep 26, 2024
f5b95db
[rtsan] Only print out unique stack traces (#110028)
cjappl Sep 26, 2024
f0162fc
[NFC] [Flang] [Semantics] [OpenMP] Fix typo in error message. (#110147)
raghavendhra Sep 26, 2024
852b648
[mlir] Improvements to the 'quant' dialect (#100667)
rafaelubalmw Sep 26, 2024
18bca5d
[AutoBump] Merge with fixes of 85278611 (Sep 21)
jorickert Dec 13, 2024
e7cd77b
[AutoBump] Merge with f0162fcd (Sep 26)
jorickert Dec 13, 2024
69364a9
[AutoBump] Merge with fixes of 852b6486 (Sep 26)
jorickert Dec 13, 2024
f141579
Merge pull request #426 from Xilinx/bump_to_852b6486
mgehre-amd Jan 2, 2025
ddc0879
Merge pull request #425 from Xilinx/bump_to_f0162fcd
mgehre-amd Jan 2, 2025
b51a5a5
Merge remote-tracking branch 'origin/feature/fused-ops' into bump_to_…
mgehre-amd Jan 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 41 additions & 92 deletions mlir/lib/Transforms/Utils/DialectConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2338,17 +2338,6 @@ struct OperationConverter {
/// remaining artifacts and complete the conversion.
LogicalResult finalize(ConversionPatternRewriter &rewriter);

/// Legalize the types of converted block arguments.
LogicalResult
legalizeConvertedArgumentTypes(ConversionPatternRewriter &rewriter,
ConversionPatternRewriterImpl &rewriterImpl);

/// Legalize the types of converted op results.
LogicalResult legalizeConvertedOpResultTypes(
ConversionPatternRewriter &rewriter,
ConversionPatternRewriterImpl &rewriterImpl,
DenseMap<Value, SmallVector<Value>> &inverseMapping);

/// Dialect conversion configuration.
ConversionConfig config;

Expand Down Expand Up @@ -2512,19 +2501,6 @@ LogicalResult OperationConverter::convertOperations(ArrayRef<Operation *> ops) {
return success();
}

LogicalResult
OperationConverter::finalize(ConversionPatternRewriter &rewriter) {
ConversionPatternRewriterImpl &rewriterImpl = rewriter.getImpl();
if (failed(legalizeConvertedArgumentTypes(rewriter, rewriterImpl)))
return failure();
DenseMap<Value, SmallVector<Value>> inverseMapping =
rewriterImpl.mapping.getInverse();
if (failed(legalizeConvertedOpResultTypes(rewriter, rewriterImpl,
inverseMapping)))
return failure();
return success();
}

/// Finds a user of the given value, or of any other value that the given value
/// replaced, that was not replaced in the conversion process.
static Operation *findLiveUserOfReplaced(
Expand All @@ -2548,87 +2524,60 @@ static Operation *findLiveUserOfReplaced(
return nullptr;
}

LogicalResult OperationConverter::legalizeConvertedOpResultTypes(
ConversionPatternRewriter &rewriter,
ConversionPatternRewriterImpl &rewriterImpl,
DenseMap<Value, SmallVector<Value>> &inverseMapping) {
// Process requested operation replacements.
for (unsigned i = 0; i < rewriterImpl.rewrites.size(); ++i) {
auto *opReplacement =
dyn_cast<ReplaceOperationRewrite>(rewriterImpl.rewrites[i].get());
if (!opReplacement)
continue;
Operation *op = opReplacement->getOperation();
for (OpResult result : op->getResults()) {
// If the type of this op result changed and the result is still live,
// we need to materialize a conversion.
if (rewriterImpl.mapping.lookupOrNull(result, result.getType()))
/// Helper function that returns the replaced values and the type converter if
/// the given rewrite object is an "operation replacement" or a "block type
/// conversion" (which corresponds to a "block replacement"). Otherwise, return
/// an empty ValueRange and a null type converter pointer.
static std::pair<ValueRange, const TypeConverter *>
getReplacedValues(IRRewrite *rewrite) {
if (auto *opRewrite = dyn_cast<ReplaceOperationRewrite>(rewrite))
return {opRewrite->getOperation()->getResults(), opRewrite->getConverter()};
if (auto *blockRewrite = dyn_cast<BlockTypeConversionRewrite>(rewrite))
return {blockRewrite->getOrigBlock()->getArguments(),
blockRewrite->getConverter()};
return {};
}

LogicalResult
OperationConverter::finalize(ConversionPatternRewriter &rewriter) {
ConversionPatternRewriterImpl &rewriterImpl = rewriter.getImpl();
DenseMap<Value, SmallVector<Value>> inverseMapping =
rewriterImpl.mapping.getInverse();

// Process requested value replacements.
for (unsigned i = 0, e = rewriterImpl.rewrites.size(); i < e; ++i) {
ValueRange replacedValues;
const TypeConverter *converter;
std::tie(replacedValues, converter) =
getReplacedValues(rewriterImpl.rewrites[i].get());
for (Value originalValue : replacedValues) {
// If the type of this value changed and the value is still live, we need
// to materialize a conversion.
if (rewriterImpl.mapping.lookupOrNull(originalValue,
originalValue.getType()))
continue;
Operation *liveUser =
findLiveUserOfReplaced(result, rewriterImpl, inverseMapping);
findLiveUserOfReplaced(originalValue, rewriterImpl, inverseMapping);
if (!liveUser)
continue;

// Legalize this result.
Value newValue = rewriterImpl.mapping.lookupOrNull(result);
// Legalize this value replacement.
Value newValue = rewriterImpl.mapping.lookupOrNull(originalValue);
assert(newValue && "replacement value not found");
Value castValue = rewriterImpl.buildUnresolvedMaterialization(
MaterializationKind::Source, computeInsertPoint(result), op->getLoc(),
/*inputs=*/newValue, /*outputType=*/result.getType(),
opReplacement->getConverter());
rewriterImpl.mapping.map(result, castValue);
inverseMapping[castValue].push_back(result);
llvm::erase(inverseMapping[newValue], result);
MaterializationKind::Source, computeInsertPoint(newValue),
originalValue.getLoc(),
/*inputs=*/newValue, /*outputType=*/originalValue.getType(),
converter);
rewriterImpl.mapping.map(originalValue, castValue);
inverseMapping[castValue].push_back(originalValue);
llvm::erase(inverseMapping[newValue], originalValue);
}
}

return success();
}

LogicalResult OperationConverter::legalizeConvertedArgumentTypes(
ConversionPatternRewriter &rewriter,
ConversionPatternRewriterImpl &rewriterImpl) {
// Functor used to check if all users of a value will be dead after
// conversion.
// TODO: This should probably query the inverse mapping, same as in
// `legalizeConvertedOpResultTypes`.
auto findLiveUser = [&](Value val) {
auto liveUserIt = llvm::find_if_not(val.getUsers(), [&](Operation *user) {
return rewriterImpl.isOpIgnored(user);
});
return liveUserIt == val.user_end() ? nullptr : *liveUserIt;
};
// Note: `rewrites` may be reallocated as the loop is running.
for (int64_t i = 0; i < static_cast<int64_t>(rewriterImpl.rewrites.size());
++i) {
auto &rewrite = rewriterImpl.rewrites[i];
if (auto *blockTypeConversionRewrite =
dyn_cast<BlockTypeConversionRewrite>(rewrite.get())) {
// Process the remapping for each of the original arguments.
for (Value origArg :
blockTypeConversionRewrite->getOrigBlock()->getArguments()) {
// If the type of this argument changed and the argument is still live,
// we need to materialize a conversion.
if (rewriterImpl.mapping.lookupOrNull(origArg, origArg.getType()))
continue;
Operation *liveUser = findLiveUser(origArg);
if (!liveUser)
continue;

Value replacementValue = rewriterImpl.mapping.lookupOrNull(origArg);
assert(replacementValue && "replacement value not found");
Value repl = rewriterImpl.buildUnresolvedMaterialization(
MaterializationKind::Source, computeInsertPoint(replacementValue),
origArg.getLoc(), /*inputs=*/replacementValue,
/*outputType=*/origArg.getType(),
blockTypeConversionRewrite->getConverter());
rewriterImpl.mapping.map(origArg, repl);
}
}
}
return success();
}

//===----------------------------------------------------------------------===//
// Reconcile Unrealized Casts
//===----------------------------------------------------------------------===//
Expand Down
Loading