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

Integrate llvm 20241031 #2

Closed
wants to merge 10,000 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
0394888
Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC
RKSimon Oct 30, 2024
f7b5f0c
[DAG] Fold (and X, (rot (not Y), Z)) -> (and X, (not (rot Y, Z)))
RKSimon Oct 30, 2024
0fb76ba
Reapply "[libc++] Simplify the implementation of std::sort a bit (#10…
philnik777 Oct 30, 2024
f447cf1
[CSKY] Fix some typos in CPU feature descriptions (NFC) (#105774)
alexrp Oct 30, 2024
092a819
[Flang][OpenMP] Add frontend support for directives involving master …
kiranchandramohan Oct 30, 2024
2de1fc8
[PhaseOrdering][X86] Add additional test coverage for #49736
RKSimon Oct 30, 2024
fcfd643
[lld][ELF] Fix typo in help text for plugin-opt=opt-remarks-with-hotn…
Enna1 Oct 30, 2024
5dac2db
[FMV][AArch64] Remove features which can be expressed as a combinatio…
labrinea Oct 30, 2024
bc999ee
[PhaseOrdering][X86] Add test coverage for #94546
RKSimon Oct 30, 2024
cea9dd8
[CodeGen] Change MachineInstr::isConstantValuePHI to return Register.…
jayfoad Oct 30, 2024
55e4e3f
[Flang][OpenMP] Access full list of entry block syms and vars (NFC) (…
skatrak Oct 30, 2024
85f3d5c
[AArch64] Add assembly/disassembly for SVE COMPACT (b/h) and EXPAND (…
SpencerAbson Oct 30, 2024
15f63ec
[AARCH64] Add assembly/disassmbly for FIRST,LASTP instr. (#114049)
Lukacma Oct 30, 2024
ea050ab
[mlir][Transforms][NFC] Dialect conversion: Reformat materialization …
matthias-springer Oct 30, 2024
217700b
[mlir][bufferization] Support bufferization of external functions (#1…
matthias-springer Oct 30, 2024
c4e135e
[ORC] Fix transfer to unknown ResourceTrackers (#114063)
hahnjo Oct 30, 2024
6f973fd
[AMDGPU][test] fix the error case in update_mc_test_check script (#11…
broxigarchen Oct 30, 2024
84b7bcf
GlobalISel/MachineIRBuilder: Construct DstOp with VRegAttrs (#113581)
petar-avramovic Oct 30, 2024
602f436
[AArch64] Add patterns for constructive splice. (#113912)
sdesmalen-arm Oct 30, 2024
5082638
[Clang] Start moving X86Builtins.def to X86Builtins.td (#106005)
philnik777 Oct 30, 2024
c478aab
[flang][OpenMP] Parser support for DEPOBJ plus DEPEND, DESTROY, UPDAT…
kparzysz Oct 30, 2024
80c8ecd
[VectorCombine] Add baseline "shuffle (binop (shuffle, shuffle)), und…
RKSimon Oct 30, 2024
7f498a8
[CostModel][LoopVectorize] Move some loop vectoriser tests (#113702)
david-arm Oct 30, 2024
8d406d8
[flang] IEEE_REAL (#113948)
vdonaldson Oct 30, 2024
cba7055
[SPIR-V] Fix BB ordering & register lifetime (#111026)
Keenuts Oct 30, 2024
e6e0463
[NFC] Delete unused clang-formatted-file.txt/ClangFormattedStatus.rst…
jurahul Oct 30, 2024
68daf7d
[Tooling/Inclusion] Add binary search related `std::ranges` symbols t…
c8ef Oct 30, 2024
6af275b
[mlir][doc] Fix nitpicks in documentation (#114157)
ashermancinelli Oct 30, 2024
d693e7c
[Bazel] fix clang for 508263824f4ef0c70f37523810e5f7d56bcfa653
Oct 30, 2024
4ba623f
[clang][Index][USR][NFC] Allow customizing langopts for USR generatio…
steakhal Oct 30, 2024
95c2d79
[mlir][EmitC] memref-to-emitc: insert conversion_casts (#114204)
Oct 30, 2024
dda20ea
[flang] Add fir-lsp-server (#114059)
DavidTruby Oct 30, 2024
4015e18
[AArch64] Add assembly/disassembly for BFMOP4{A,S} (non-widening) ins…
momchil-velikov Oct 30, 2024
f405c68
[OPT] Search whole BB for convergence token. (#112728)
s-perron Oct 30, 2024
e989e31
[RISCV] Mark f16/bf16 lrint and llrint cost as invalid (#113924)
lukel97 Oct 30, 2024
7d1e283
[Clang][Sema] Ignore previous partial specializations of member templ…
sdkrystian Oct 30, 2024
475e736
[MemProf] Include <ctime> to avoid MSVC failure (#114246)
teresajohnson Oct 30, 2024
72b1153
[GlobalISel] Import samesign flag (#113090)
tschuett Oct 30, 2024
4c03d37
[SPIR-V] Fix broken test due to G_BITCAST (#114242)
Keenuts Oct 30, 2024
45f420e
[lldb] Use Py_InitializeFromConfig with Python >= 3.8 (NFC) (#114112)
JDevlieghere Oct 30, 2024
eac2c18
Remove a flaky and unnecessary check (#114251)
adrian-prantl Oct 30, 2024
4b02877
Revert "[GlobalISel] Import samesign flag" (#114256)
tschuett Oct 30, 2024
8ee5e19
[AMDGPU] Fix @llvm.amdgcn.cs.chain with SGPR args not provably unifor…
jayfoad Oct 30, 2024
1ddea4f
[AArch64] NFC: Refactoring of the SubRegIndexes in AArch64RegisterInf…
sdesmalen-arm Oct 30, 2024
6bf4476
[AMDGPU] Fix @llvm.amdgcn.cs.chain with callee not provably uniform (…
jayfoad Oct 30, 2024
a575e6e
Fix a couple of tests that were incorrectly using configuration.dwarf…
jimingham Oct 30, 2024
9cd30b1
Fix the sort function for languages to have "strict weak ordering". (…
jimingham Oct 30, 2024
7dbbd2b
Fix call site breakpoint patch (#114158)
jimingham Oct 30, 2024
4927725
[lldb] Use LLVM's helper for Unicode conversion (NFC) (#112582)
JDevlieghere Oct 30, 2024
0c9a023
[flang][fir] always use memcpy for fir.box (#113949)
ashermancinelli Oct 30, 2024
0227b73
[AMDGPU][True16][test] update VOP2 asm/dasm file with true16/fake16 (…
broxigarchen Oct 30, 2024
311c077
[AMDGPU] Fix test failures after #114232 and #114200
jayfoad Oct 30, 2024
463a4c1
[clang] Remove some uses of llvm::StructType::setBody. NFC. (#113691)
jayfoad Oct 30, 2024
cc2d8e7
[AArch64] Add assembly/disassembly of FMOP4{A,S} (non-widening) singl…
momchil-velikov Oct 30, 2024
d7e6cba
[RISCV] Use bit or bits for some tablegen class arguments. NFC
topperc Oct 30, 2024
cf6ca98
[Clang] Add and use mangleVendorType helper. NFC. (#108970)
jayfoad Oct 30, 2024
0c8e12f
[libc] Fix fexcept_t type to match canonical ABI and API (#113666)
frobtech Oct 30, 2024
5192cb7
[AArch64] Add hidden option to enable subreg liveness tracking.
sdesmalen-arm Oct 30, 2024
70d35fb
[ORC] Fix include guard names. NFC.
lhames Oct 29, 2024
b94762d
[ORC] Add comment on include guard #endif
lhames Oct 29, 2024
feb2d86
[TLI] Add support for hypot libcall. (#113724)
MouriNaruto Oct 30, 2024
0454950
[AArch64] Add assembly/disassembly for FMOP4{A,S} (non-widening) doub…
momchil-velikov Oct 30, 2024
705f3eb
[rtsan][NFC] Add documentation link to Function Effects (#113979)
cjappl Oct 30, 2024
5545f76
Pass the executable name as arg[0] when calling ExecuteAndWait() (#11…
perry-ca Oct 30, 2024
ca1154d
AMDGPU: Disable pattern matching "x<<32-y>>32-y" to "bfe x, 0, y" (#1…
changpeng Oct 30, 2024
a518ed2
Respect the [[clang::unsafe_buffer_usage]] attribute for field and co…
danakj Oct 30, 2024
2bc5302
Revert "[lldb] Use Py_InitializeFromConfig with Python >= 3.8 (NFC)" …
JDevlieghere Oct 30, 2024
5bd1af5
[LV] Directly store VPlan in InnerLoopVectorizer (NFC).
fhahn Oct 30, 2024
c3724ba
[RISCV] Add OperandType for vector rounding mode operands. (#114179)
topperc Oct 30, 2024
71b6f6b
[RISCV] Add missing hasPostISelHook = 1 to vector pseudos that might …
topperc Oct 30, 2024
90786ad
[Clang][Sema] Always use latest redeclaration of primary template (#1…
sdkrystian Oct 30, 2024
47d9db7
[AArch64] Add asssembly/disassembly for FMOP4{A,S} (widening, 2-way, …
momchil-velikov Oct 30, 2024
408c84f
[RISCV] Add hasPostISelHook to sf.vfnrclip pseudo instructions. (#114…
topperc Oct 30, 2024
b3bb6f1
[GlobalISel] Import samesign flag (#114267)
tschuett Oct 30, 2024
dc1ff88
[libc][i386] define MINSIGSTKSZ & SIGSTKSZ (#114249)
nickdesaulniers Oct 30, 2024
bc79ec0
[clang][ASTMatcher] Handle variable templates in `isInstantiated` and…
frederic-tingaud-sonarsource Oct 30, 2024
d8295e2
[SPIRV][HLSL] Handle arrays of resources (#111564)
s-perron Oct 30, 2024
b03c8c4
libc: strlcpy/strlcat shouldn't bzero the rest of `buf` (#114259)
gburgessiv Oct 30, 2024
e4dfb51
Fix documentation build
AaronBallman Oct 30, 2024
d210964
[MLIR] [AMX] Fix strides used by AMX lowering for tile loads and stor…
ienkovich Oct 30, 2024
c616f24
[SPIR-V] Do instruction selection for G_BITCAST on an earlier stage (…
VyacheslavLevytskyy Oct 30, 2024
b1320d3
[libc][i386] setjmp/longjmp (#112437)
nickdesaulniers Oct 30, 2024
e89f821
[NFC][NVPTX] Cleanup getPreferredVectorAction() (#114115)
justinfargnoli Oct 30, 2024
0167a92
[RISCV] Use unsigned instead of int64_t for two small positive shift …
topperc Oct 30, 2024
1c2824e
[NFC][Coro] Add helpers for coro cloning with a TimeTraceScope (#112948)
artempyanykh Oct 30, 2024
84a78ab
[NFC][Utils] Extract CloneFunctionAttributesInto from CloneFunctionIn…
artempyanykh Oct 30, 2024
bfe486f
Passing descriptors by reference to CUDA runtime calls (#114288)
Renaud-K Oct 30, 2024
f7c36d2
[lldb] Fix API test for file redirection to existing files (#114119)
kusmour Oct 30, 2024
4afa978
Revert "[Clang][Sema] Always use latest redeclaration of primary temp…
felipepiovezan Oct 30, 2024
74d8f39
[HLSL] Remove old resource annotations for UAVs and SRVs (#114139)
hekota Oct 30, 2024
14045de
[RISCV] Account for factor in interleave memory op costs (#111511)
lukel97 Oct 30, 2024
56dcfbe
[RISCV] Remove duplicate vector conversion pseudos. (#114287)
topperc Oct 30, 2024
5d35747
[libc] Refactor statvfs tests (#114147)
michaelrj-google Oct 30, 2024
50c4447
[libc] fix behavior of strrchr(x, '\0') (#112620)
gburgessiv Oct 30, 2024
36d5692
Revert "[TLI] Add support for hypot libcall." (#114312)
gulfemsavrun Oct 30, 2024
1cecc58
[NVPTX] instcombine known pointer AS checks. (#112964)
Artem-B Oct 30, 2024
d043670
[mlir][func] Replace `ValueDecomposer` with target materialization (#…
matthias-springer Oct 30, 2024
04e876e
Revert "[NVPTX] instcombine known pointer AS checks." (#114319)
Artem-B Oct 30, 2024
67c4857
[mlir][spirv] Ignore extra comma for category_args in gen_spirv_diale…
cmarcelo Oct 30, 2024
6e75eec
[mlir][spirv] Remove code for de-duplicating symbols in SPIR-V gramma…
cmarcelo Oct 30, 2024
3a782ef
[lldb] Add a link to LLDB's Discord channel on the website (#114289)
JDevlieghere Oct 30, 2024
1cb5998
[RISCV] Remove redundant +zfh from +zvfh[min] tests. NFC
lukel97 Oct 30, 2024
6ffefbb
[LinkerWrapper] Remove handling of special bitcode flags (#114298)
jhuber6 Oct 30, 2024
a39fb30
[libc] Fix usage of std::nullptr_t in LibcTest.h. (#114321)
lntue Oct 30, 2024
847f4ef
[X86] Use getAllOnesConstant instead of getConstant(-1). NFC (#114299)
topperc Oct 30, 2024
c1858cd
[clang-link-wrapper] Fix a warning
kazutakahirata Oct 30, 2024
51628fa
[RISCV] Sink hasPostISelHook = 1 for vector pseudos into the subclass…
topperc Oct 30, 2024
b01e2a8
[llvm] Allow always dropping all llvm.type.test sequences
ilovepi Oct 30, 2024
36b7915
[gn] port 508263824f4ef (BuiltinsX86.td)
nico Oct 30, 2024
cf9d1c1
[SDAG] Simplify `SDNodeFlags` with bitwise logic (#114061)
dtcxzyw Oct 31, 2024
d67f2bd
[gn build] Port 84b7bcfcac02
llvmgnsyncbot Oct 31, 2024
dbece8e
[rtsan][NFC] Put in comment describing why freeing a nullptr is safe …
cjappl Oct 31, 2024
f582cd3
[SelectionDAG] Fix a warning
kazutakahirata Oct 31, 2024
dafb90d
[NFC] Call base class method in DarwinAArch64TargetInfo::getOSDefines…
ahatanak Oct 31, 2024
e99c490
[libc++] Granularize <cstddef> includes (#108696)
philnik777 Oct 31, 2024
3243e3d
Fix stepping away from the bottom-most frame of a virtual inlined cal…
jimingham Oct 31, 2024
e9b7fe8
[clangd] [Modules] Use ASTReader directly in IsModuleFileUpToDate (#1…
ChuanqiXu9 Oct 31, 2024
de7ad6b
[lldb] Use Py_InitializeFromConfig with Python >= 3.8 (NFC) (#114112)
JDevlieghere Oct 30, 2024
14f3cdc
[libc][bazel] Add BUILD rules for float16 math functions. (#114187)
vonosmas Oct 31, 2024
8127162
[X86][AMX] Support AMX-FP8 (#113850)
fzou1 Oct 31, 2024
f0bae56
[GISel] Return const APInt & from getIConstantFromReg. NFC (#114320)
topperc Oct 31, 2024
55dbacb
[RISCV] Remove RISCVISD::VFCVT_X(U)_F_VL by using VFCVT_RM_X(U)_F_VL …
topperc Oct 31, 2024
ccdfd1a
[gn build] Port 8127162427c5
llvmgnsyncbot Oct 31, 2024
75aaa31
[lldb] Fix formatting and whitespace in ScriptInterpreterPython (NFC)
JDevlieghere Oct 31, 2024
9778808
[ObjC] Insert method parameters in scope as they are parsed (#113745)
apple-fcloutier Oct 31, 2024
948249d
Revert "[DXIL] Add GroupMemoryBarrierWithGroupSync intrinsic" (#114322)
adam-yang Oct 31, 2024
6bf214b
[GlobalISel][AArch64] Legalize G_INSERT_VECTOR_ELT for SVE (#114310)
tschuett Oct 31, 2024
6effab9
Revert "[GlobalISel][AArch64] Legalize G_INSERT_VECTOR_ELT for SVE" (…
tschuett Oct 31, 2024
50896e7
[ARM] Use getSignedConstant. NFC
topperc Oct 31, 2024
00cbb68
[LegalizeDAG] Use getSignedConstant. NFC
topperc Oct 31, 2024
a33fd61
[RISCV] Remove dead code from IntrinsicsRISCVXsf.td. NFC
topperc Oct 31, 2024
6da5968
[RISCV] Lower scalar_to_vector for supported FP types (#114340)
lukel97 Oct 31, 2024
9bb5af8
[TableGen] Replace StringRef::slice with substr. NFC
MaskRay Oct 31, 2024
f8d1ffd
[NFC] Remove references to deleted `ClangFormattedStatus` file (#114331)
jurahul Oct 31, 2024
a8575c1
[RISCV] Sink ordered reduction check into FAdd. NFC (#114180)
ElvisWang123 Oct 31, 2024
fdc7812
[mlir][docs] Fix typo in bufferization documentation(NFC) (#114342)
CoTinker Oct 31, 2024
287781c
[webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and …
rniwa Oct 31, 2024
dadfd4a
Revert "[webkit.UncountedLambdaCapturesChecker] Ignore trivial functi…
rniwa Oct 31, 2024
9735c05
[ValueTracking] Compute KnownFP state from recursive select/phi. (#11…
davemgreen Oct 31, 2024
d5cdc26
[Clang] Mark RetainCommentsFromSystemHeaders as compatible language o…
ChuanqiXu9 Oct 31, 2024
1897bf6
[LoongArch] Enable FeatureExtLSX for generic-la64 processor (#113421)
Ami-zhang Oct 31, 2024
a776bd1
[clang-tidy] support `return c ? a : b;` in bugprone-return-const-ref…
5chmidti Oct 31, 2024
7cd2974
[AMDGPU] Extend mov_dpp8 intrinsic lowering for generic types (#114296)
rampitec Oct 31, 2024
0698482
[flang][MLIR] Hoist `do concurrent` nest bounds/steps outside the nes…
ergawy Oct 31, 2024
0848898
[mlir][docs][NFC] Fix typo in bufferization/transforms documentation …
marcauberer Oct 31, 2024
862074f
[LoongArch][NFC] Pre-commit tests for the adjacency of expanded pseud…
heiher Oct 31, 2024
a218f0f
[lldb][test] Skip one inline stepping test for arm-ubuntu. (#114295)
jimingham Oct 31, 2024
7557972
[lldb][test] Fix formatting in TestInlineStepping.py
DavidSpickett Oct 31, 2024
f0b9a0b
[clang][bytecode] Diagnose delete with non-virtual dtor (#114373)
tbaederr Oct 31, 2024
ba1a09d
[AMDGPU] Allow overload of __builtin_amdgcn_mov_dpp8 (#113610)
rampitec Oct 31, 2024
3bc58fc
[lldb][test] Fix FileActionTest.cpp for Windows (#112657)
omjavaid Oct 31, 2024
28d0718
[DAGCombiner] Add combine avg from shifts (#113909)
dnsampaio Oct 31, 2024
ccb7cc3
[clang][bytecode] Diagnose negative array sizes differently (#114380)
tbaederr Oct 31, 2024
e67e03a
[analyzer] EvalBinOpLL should return Unknown less often (#114222)
steakhal Oct 31, 2024
89f2d50
[mlir][debug] Support DIGenericSubrange. (#113441)
abidh Oct 31, 2024
78a98c7
[gn build] Port e67e03a22c27
llvmgnsyncbot Oct 31, 2024
fba9f05
[libclc] Format clc_ldexp.cl and clc_hypot.cl. NFC
frasercrmck Oct 31, 2024
86974e1
[libclc] Restore header order, which formatting broke
frasercrmck Oct 31, 2024
0800351
[AArch64][SVE] Use INS when moving elements from bottom 128b of SVE t…
SpencerAbson Oct 31, 2024
22081dc
[SPIR-V] Add missing ScalarOpts library (#114384)
svenvh Oct 31, 2024
06e28ed
Revert "specify clang --target to fix breakage on AIX (#114127)"
Oct 31, 2024
d924a9b
Revert "[InstrPGO] Support cold function coverage instrumentation (#1…
Oct 31, 2024
92af82a
[VectorCombine] Fold "shuffle (binop (shuffle, shuffle)), undef" --> …
RKSimon Oct 31, 2024
73fbae8
[libc++][C++03] Fix libc++ includes (#109000)
philnik777 Oct 31, 2024
95c5042
[AArch64] Add assembly/disassembly for {S,SU,US,U}MOP4{A,S} instructi…
momchil-velikov Oct 31, 2024
d3daa3c
[clang/AST] Make it possible to use SwiftAttr in type context (#108631)
xedin Oct 31, 2024
262afc8
[mlir][TosaToLinalg] `RescaleConverter` only support integer type (#1…
CoTinker Oct 31, 2024
21a6032
[MLIR][OpenMP] Simplify translation to LLVM IR error handling (#114036)
skatrak Oct 31, 2024
fcaa8c6
Fix MSVC "signed/unsigned mismatch" warning. NFC.
RKSimon Oct 31, 2024
bd6c214
[MLIR][OpenMP] Emit descriptive errors for all unsupported clauses (#…
skatrak Oct 31, 2024
18f0f70
[RISCV] Support llvm.masked.expandload intrinsic (#101954)
wangpc-pp Oct 31, 2024
b185e92
[AArch64] Add assembly/disassembly for {S,U,SU,US}TMOPA instructions …
momchil-velikov Oct 31, 2024
b396921
[SCCP] Handle llvm.vscale intrinsic calls (#114033)
hazzlim Oct 31, 2024
3f17613
[docs] Point to Discourse for creating RFCs (#114341)
jansvoboda11 Oct 31, 2024
89a8c71
[SDAG] Support expanding `FSINCOS` to vector library calls (#114039)
MacDue Oct 31, 2024
cf3d6fd
[SPIR-V] Re-enable -verify-machineinstrs on tests (#114388)
Keenuts Oct 31, 2024
5581e43
[LoongArch][NFC] Pre-commit tests for LSX/LASX bswap codegen (#114170)
xen0n Oct 31, 2024
0ab44fd
Replace documentation mentions of IRC with Discord (#114276)
AaronBallman Oct 31, 2024
1e072ae
[CGP] [CodeGenPrepare] Folding `urem` with loop invariant value plus …
goldsteinn Oct 31, 2024
2c82079
[clang][bytecode] Fix Pointer::toAPValue() for multidimensional array…
tbaederr Oct 31, 2024
d0ffb53
[libclang/python] Fix incorrect assert in test (#114395)
DeinAlptraum Oct 31, 2024
4493897
[libclang/python/tests] Remove unused variables (#114397)
DeinAlptraum Oct 31, 2024
31faa39
[libclang/python/tests] Remove Python <3.6 workarounds (#114399)
DeinAlptraum Oct 31, 2024
c485ee1
[AArch64] Add assembly/disassembly for zeroing SVE REV{B,H,W,D} and R…
SpencerAbson Oct 31, 2024
eeee5a4
[Clang][SYCL] Introduce clang-sycl-linker to link SYCL offloading dev…
asudarsa Oct 31, 2024
1240902
AMDGPU/GlobalISel: Handle atomic sextload and zextload (#111721)
arsenm Oct 31, 2024
41448c1
[AArch64] NFC: Add RUN line for +sve2 for sve-intrinsics-perm-select.ll
sdesmalen-arm Oct 31, 2024
1bc58a2
Extend `getBackwardSlice` to track values captured from above (#113478)
IanWood1 Oct 31, 2024
880b3b2
[rtsan][NFC] Add 'known to have non-deterministic' caveat to document…
cjappl Oct 31, 2024
7e877fc
[Reland][TLI] Add support for hypot libcall. (#114343)
MouriNaruto Oct 31, 2024
4ccd2b0
Reland "[rtsan] Intercept aligned_alloc on all versions of OSX if ava…
cjappl Oct 31, 2024
db5bcb2
GlobalISel: Fix combine duplicating atomic loads (#111730)
arsenm Oct 31, 2024
d6a0602
[clang] Fix an em/email typo in Maintainers.rst (#114385)
tbaederr Oct 31, 2024
1d03708
AMDGPU: Expand flat atomics that may access private memory (#109407)
arsenm Oct 31, 2024
0f8a6b7
[mlir] Add fast walk-based pattern rewrite driver (#113825)
kuhar Oct 31, 2024
296a9ba
[libc] Fix memory leak in MPFRWrapper cospif with MPFR pre 4.2. (#114…
lntue Oct 31, 2024
221cbae
[PS5][Driver] Pass a target emulation to the linker (#114060)
playstation-edd Oct 31, 2024
ccddd13
Enable aggressive constant merge in GlobalMerge for AIX (#113956)
syzaara Oct 31, 2024
a1c6dc2
[llvm][docs] Add Approvals section to GitHub guide (#113434)
DavidSpickett Oct 31, 2024
cf1963a
[InstCombine] Fix FMF propagation in `foldSelectIntoOp` (#114356)
dtcxzyw Oct 31, 2024
61498a8
[libc++] Include language.h inside __config (#114269)
ldionne Oct 31, 2024
9c71888
[RISCV] Cost ordered bf16/f16 w/ zvfhmin reductions as invalid (#114250)
lukel97 Oct 31, 2024
df9301e
[libc++abi] Fix user prompt in cp-to-llvm.sh. (#114268)
rjmansfield Oct 31, 2024
05910b4
[clang][bytecode][NFC] Use const auto* for Type cast result (#114405)
tbaederr Oct 31, 2024
423f354
[flang][cuda] Adding support for registration of boxes (#114323)
Renaud-K Oct 31, 2024
9234ae1
[NFC] clang-format -i llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
shiltian Oct 31, 2024
9ce0a61
[lldb] Use PY_VERSION_HEX to simplify conditional compilation (NFC) (…
JDevlieghere Oct 31, 2024
3452149
[mlir][AMDGPU] Support vector<2xbf16> packed atomic fadd (#113929)
krzysz00 Oct 31, 2024
0d499f9
[SYCL] Fix sycl linker's missing dependencies
jhuber6 Oct 31, 2024
c7ef002
Fix performance bug in buildLocationList (#109343)
tmsri Oct 31, 2024
2aed0d9
[lldb][test] Fix `LibCxxInternalsRecognizerTestCase` on clang <= 17 (…
vogelsgesang Oct 31, 2024
f4af60d
[analyzer] Fix false double free when including 3rd-party headers wit…
Snape3058 Oct 31, 2024
e4e9fea
[flang][cuda] Pass descriptor by reference for CUFMemsetDescriptor (#…
clementval Oct 31, 2024
6582785
Add CHECK-LABEL to avoid source tree path sensitivity in test (#112461)
tex3d Oct 31, 2024
be60afe
[clang][modules] De-duplicate some logic in `HeaderFileInfoTrait` (#1…
jansvoboda11 Oct 31, 2024
f7a96dc
[LoongArch] Ensure pcaddu18i and jirl adjacency in tail calls for cor…
heiher Oct 31, 2024
8129b6b
[NVPTX, InstCombine] instcombine known pointer AS checks. (#114325)
Artem-B Oct 31, 2024
f246b5f
[LoongArch] Support bswap for LSX/LASX VTs (#114171)
xen0n Oct 31, 2024
f5e6c8e
[mlir][python] Raise maximum allowed version (#114050)
marbre Oct 31, 2024
6c28530
[Flang][OpenMP] Properly bind arguments of composite operations (#113…
skatrak Oct 31, 2024
9fb4bc5
[DAG] SimplifyMultipleUseDemandedBits - ignore SRL node if we're just…
RKSimon Oct 31, 2024
d12a8da
[libclc] Move min/max/clamp into the CLC builtins library (#114386)
frasercrmck Oct 31, 2024
d6b9028
[lldb] Extend FindTypes to optionally search by mangled type name (#1…
augusto2112 Oct 31, 2024
71cfa38
[libclang/python/tests] Clean up imports (#114409)
DeinAlptraum Oct 31, 2024
e7080fd
[SLP]Extra check if the intruction matked for removal, must be replac…
alexey-bataev Oct 31, 2024
4d4a43d
[LLD][COFF] Create EC alias symbols for entry points and exports (#11…
cjacek Oct 31, 2024
1559568
Fix failing test gcov_ctr_ref_init.ll (#114428)
syzaara Oct 31, 2024
ef2a104
[clang][bytecode] Start implementing __builtin_bit_cast (#112126)
tbaederr Oct 31, 2024
5ce8a93
[Bazel] Fix for 1bc58a258e2edb6221009a26d0f0037eda6c7c47
Oct 31, 2024
ca9f5b6
[Bazel] Fix for 0f8a6b7d03550cb58cf49535af2de2230abfe997
Oct 31, 2024
a553c62
[clang][modules] Avoid allocations when reading blob paths (#113984)
jansvoboda11 Oct 31, 2024
b9d7117
[RISCV] Assign separate PseudoVSHA2MS_VV opcodes for each SEW (#114317)
mshockwave Oct 31, 2024
19a34dd
[SLP]Do not account external uses in EH block and in non-returning bl…
alexey-bataev Oct 31, 2024
42fae38
[lldb] Add a fuzzer for the DWARF Expression Evaluator (#114286)
JDevlieghere Oct 31, 2024
a9a8351
Revert "Extend `getBackwardSlice` to track values captured from above…
joker-eph Oct 31, 2024
88591aa
[lldb] Remove lldb-repro utility
JDevlieghere Oct 31, 2024
e05def0
[SLP]Do not vectorize code in EH and non-returning blocks
alexey-bataev Oct 31, 2024
244ea40
Revert "[JITLink] Use MapVector to stabilize iteration order"
lhames Oct 31, 2024
fe52152
[JITLink][COFF] Delete trailing whitespace in testcase. NFC.
lhames Oct 31, 2024
cd8d507
[RISCV] Pull __builtin_riscv_clz/ctz out of a nested switch. NFC
topperc Oct 31, 2024
25fd366
[sanitizer_common] AND signals in BlockSignals instead of deleting (#…
thurstond Oct 31, 2024
0856592
Ensure `collectTransitivePredecessors` returns Pred only from the Loo…
Nirhar Oct 31, 2024
93d12d4
Revert "[Bazel] Fix for 1bc58a258e2edb6221009a26d0f0037eda6c7c47" (#…
slackito Oct 31, 2024
5b356f2
Trivial change llvm::CreateInfoOutputFile() to return raw_ostream. NFC
dsandersllvm Oct 31, 2024
6ff8091
[Alignment] Fix old method name in comment. NFC
topperc Oct 31, 2024
e3222e6
AMDGPU: Add baseline tests for cmpxchg custom expansion (#109408)
arsenm Oct 31, 2024
19c8475
[SelectionDAG] Add preliminary plumbing for `samesign` flag
antoniofrighetto Oct 31, 2024
9cc2981
AtomicExpand: Copy metadata from atomicrmw to cmpxchg (#109409)
arsenm Oct 31, 2024
5c1752e
[MLIR][DLTI] Pretty parsing and printing for DLTI attrs (#113365)
rolfmorel Oct 31, 2024
18ca9b4
Revert "[mlir][Vector] Support 0-d vectors natively in TransferOpRedu…
Max191 Oct 30, 2024
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
Prev Previous commit
Next Next commit
[MLIR][DLTI] Pretty parsing and printing for DLTI attrs (llvm#113365)
Unifies parsing and printing for DLTI attributes. Introduces a format of
`#dlti.attr<key1 = val1, ..., keyN = valN>` syntax for all queryable
DLTI attributes similar to that of the DictionaryAttr, while retaining
support for specifying key-value pairs with `#dlti.dl_entry` (whether to
retain this is TBD).

As the new format does away with most of the boilerplate, it is much easier
to parse for humans. This makes an especially big difference for nested
attributes.

Updates the DLTI-using tests and includes fixes for misc error checking/
error messages.
rolfmorel authored Oct 31, 2024
commit 5c1752e368585e55c0335a7d7651fe43d42af282
2 changes: 1 addition & 1 deletion flang/test/Fir/tco-default-datalayout.fir
Original file line number Diff line number Diff line change
@@ -7,6 +7,6 @@ module {
// CHECK: module attributes {
// CHECK-SAME: dlti.dl_spec = #dlti.dl_spec<
// ...
// CHECK-SAME: #dlti.dl_entry<i64, dense<[32, 64]> : vector<2xi64>>,
// CHECK-SAME: i64 = dense<[32, 64]> : vector<2xi64>,
// ...
// CHECK-SAME: llvm.data_layout = ""
2 changes: 1 addition & 1 deletion flang/test/Fir/tco-explicit-datalayout.fir
Original file line number Diff line number Diff line change
@@ -8,6 +8,6 @@ module attributes {llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i6
// CHECK: module attributes {
// CHECK-SAME: dlti.dl_spec = #dlti.dl_spec<
// ...
// CHECK-SAME: #dlti.dl_entry<i64, dense<128> : vector<2xi64>>,
// CHECK-SAME: i64 = dense<128> : vector<2xi64>,
// ...
// CHECK-SAME: llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:128-i128:128-f80:128-n8:16:32:64-S128"
57 changes: 31 additions & 26 deletions mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td
Original file line number Diff line number Diff line change
@@ -88,11 +88,15 @@ def DLTI_DataLayoutSpecAttr :

/// Returns the attribute associated with the key.
FailureOr<Attribute> query(DataLayoutEntryKey key) {
return llvm::cast<mlir::DataLayoutSpecInterface>(*this).queryHelper(key);
return ::llvm::cast<mlir::DataLayoutSpecInterface>(*this).queryHelper(key);
}
}];
}

//===----------------------------------------------------------------------===//
// MapAttr
//===----------------------------------------------------------------------===//

def DLTI_MapAttr : DLTIAttr<"Map", [DLTIQueryInterface]> {
let summary = "A mapping of DLTI-information by way of key-value pairs";
let description = [{
@@ -106,18 +110,16 @@ def DLTI_MapAttr : DLTIAttr<"Map", [DLTIQueryInterface]> {

Consider the following flat encoding of a single-key dictionary
```
#dlti.map<#dlti.dl_entry<"CPU::cache::L1::size_in_bytes", 65536 : i32>>
#dlti.map<"CPU::cache::L1::size_in_bytes" = 65536 : i32>>
```
versus nested maps, which make it possible to obtain sub-dictionaries of
related information (with the following example making use of other
attributes that also implement the `DLTIQueryInterface`):
```
#dlti.target_system_spec<"CPU":
#dlti.target_device_spec<#dlti.dl_entry<"cache",
#dlti.map<#dlti.dl_entry<"L1",
#dlti.map<#dlti.dl_entry<"size_in_bytes", 65536 : i32>>>,
#dlti.dl_entry<"L1d",
#dlti.map<#dlti.dl_entry<"size_in_bytes", 32768 : i32>>> >>>>
#dlti.target_system_spec<"CPU" =
#dlti.target_device_spec<"cache" =
#dlti.map<"L1" = #dlti.map<"size_in_bytes" = 65536 : i32>,
"L1d" = #dlti.map<"size_in_bytes" = 32768 : i32> >>>
```

With the flat encoding, the implied structure of the key is ignored, that is
@@ -132,14 +134,13 @@ def DLTI_MapAttr : DLTIAttr<"Map", [DLTIQueryInterface]> {
`transform.dlti.query ["CPU","cache","L1","size_in_bytes"] at %op` gives
back the first leaf value contained. To access the other leaf, we need to do
`transform.dlti.query ["CPU","cache","L1d","size_in_bytes"] at %op`.
```
}];
let parameters = (ins
ArrayRefParameter<"DataLayoutEntryInterface", "">:$entries
);
let mnemonic = "map";
let genVerifyDecl = 1;
let assemblyFormat = "`<` $entries `>`";
let hasCustomAssemblyFormat = 1;
let extraClassDeclaration = [{
/// Returns the attribute associated with the key.
FailureOr<Attribute> query(DataLayoutEntryKey key) {
@@ -167,20 +168,23 @@ def DLTI_TargetSystemSpecAttr :
```
dlti.target_system_spec =
#dlti.target_system_spec<
"CPU": #dlti.target_device_spec<
#dlti.dl_entry<"dlti.L1_cache_size_in_bytes", 4096: ui32>>,
"GPU": #dlti.target_device_spec<
#dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>,
"XPU": #dlti.target_device_spec<
#dlti.dl_entry<"dlti.max_vector_op_width", 4096 : ui32>>>
"CPU" = #dlti.target_device_spec<
"L1_cache_size_in_bytes" = 4096: ui32>,
"GPU" = #dlti.target_device_spec<
"max_vector_op_width" = 64 : ui32>,
"XPU" = #dlti.target_device_spec<
"max_vector_op_width" = 4096 : ui32>>
```

The verifier checks that keys are strings and pointed to values implement
DLTI's TargetDeviceSpecInterface.
}];
let parameters = (ins
ArrayRefParameter<"DeviceIDTargetDeviceSpecPair", "">:$entries
ArrayRefParameter<"DataLayoutEntryInterface">:$entries
);
let mnemonic = "target_system_spec";
let genVerifyDecl = 1;
let assemblyFormat = "`<` $entries `>`";
let hasCustomAssemblyFormat = 1;
let extraClassDeclaration = [{
/// Return the device specification that matches the given device ID
std::optional<TargetDeviceSpecInterface>
@@ -189,16 +193,18 @@ def DLTI_TargetSystemSpecAttr :

/// Returns the attribute associated with the key.
FailureOr<Attribute> query(DataLayoutEntryKey key) const {
return llvm::cast<mlir::TargetSystemSpecInterface>(*this).queryHelper(key);
return ::llvm::cast<mlir::TargetSystemSpecInterface>(*this).queryHelper(key);
}
}];
let extraClassDefinition = [{
std::optional<TargetDeviceSpecInterface>
$cppClass::getDeviceSpecForDeviceID(
TargetSystemSpecInterface::DeviceID deviceID) {
for (const auto& entry : getEntries()) {
if (entry.first == deviceID)
return entry.second;
if (entry.getKey() == DataLayoutEntryKey(deviceID))
if (auto deviceSpec =
::llvm::dyn_cast<TargetDeviceSpecInterface>(entry.getValue()))
return deviceSpec;
}
return std::nullopt;
}
@@ -219,21 +225,20 @@ def DLTI_TargetDeviceSpecAttr :

Example:
```
#dlti.target_device_spec<
#dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>
#dlti.target_device_spec<"max_vector_op_width" = 64 : ui32>
```
}];
let parameters = (ins
ArrayRefParameter<"DataLayoutEntryInterface", "">:$entries
ArrayRefParameter<"DataLayoutEntryInterface">:$entries
);
let mnemonic = "target_device_spec";
let genVerifyDecl = 1;
let assemblyFormat = "`<` $entries `>`";
let hasCustomAssemblyFormat = 1;

let extraClassDeclaration = [{
/// Returns the attribute associated with the key.
FailureOr<Attribute> query(DataLayoutEntryKey key) const {
return llvm::cast<mlir::TargetDeviceSpecInterface>(*this).queryHelper(key);
return ::llvm::cast<mlir::TargetDeviceSpecInterface>(*this).queryHelper(key);
}
}];
}
6 changes: 2 additions & 4 deletions mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
#ifndef MLIR_INTERFACES_DATALAYOUTINTERFACES_H
#define MLIR_INTERFACES_DATALAYOUTINTERFACES_H

#include "mlir/IR/Attributes.h"
#include "mlir/IR/DialectInterface.h"
#include "mlir/IR/OpDefinition.h"
#include "llvm/ADT/DenseMap.h"
@@ -32,10 +33,7 @@ using DataLayoutEntryKey = llvm::PointerUnion<Type, StringAttr>;
using DataLayoutEntryList = llvm::SmallVector<DataLayoutEntryInterface, 4>;
using DataLayoutEntryListRef = llvm::ArrayRef<DataLayoutEntryInterface>;
using TargetDeviceSpecListRef = llvm::ArrayRef<TargetDeviceSpecInterface>;
using DeviceIDTargetDeviceSpecPair =
std::pair<StringAttr, TargetDeviceSpecInterface>;
using DeviceIDTargetDeviceSpecPairListRef =
llvm::ArrayRef<DeviceIDTargetDeviceSpecPair>;
using TargetDeviceSpecEntry = std::pair<StringAttr, TargetDeviceSpecInterface>;
class DataLayoutOpInterface;
class DataLayoutSpecInterface;
class ModuleOp;
6 changes: 3 additions & 3 deletions mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
Original file line number Diff line number Diff line change
@@ -276,7 +276,7 @@ def TargetDeviceSpecInterface : AttrInterface<"TargetDeviceSpecInterface", [DLTI
/// Helper for default implementation of `DLTIQueryInterface`'s `query`.
::mlir::FailureOr<::mlir::Attribute>
queryHelper(::mlir::DataLayoutEntryKey key) const {
if (auto strKey = llvm::dyn_cast<StringAttr>(key))
if (auto strKey = ::llvm::dyn_cast<StringAttr>(key))
if (DataLayoutEntryInterface spec = getSpecForIdentifier(strKey))
return spec.getValue();
return ::mlir::failure();
@@ -304,7 +304,7 @@ def TargetSystemSpecInterface : AttrInterface<"TargetSystemSpecInterface", [DLTI
let methods = [
InterfaceMethod<
/*description=*/"Returns the list of layout entries.",
/*retTy=*/"llvm::ArrayRef<DeviceIDTargetDeviceSpecPair>",
/*retTy=*/"::llvm::ArrayRef<DataLayoutEntryInterface>",
/*methodName=*/"getEntries",
/*args=*/(ins)
>,
@@ -334,7 +334,7 @@ def TargetSystemSpecInterface : AttrInterface<"TargetSystemSpecInterface", [DLTI
/// Helper for default implementation of `DLTIQueryInterface`'s `query`.
::mlir::FailureOr<::mlir::Attribute>
queryHelper(::mlir::DataLayoutEntryKey key) const {
if (auto strKey = llvm::dyn_cast<::mlir::StringAttr>(key))
if (auto strKey = ::llvm::dyn_cast<::mlir::StringAttr>(key))
if (auto deviceSpec = getDeviceSpecForDeviceID(strKey))
return *deviceSpec;
return ::mlir::failure();
Loading