Skip to content

IRDL-to-C++ #15

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

Closed
wants to merge 439 commits into from
Closed
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
439 commits
Select commit Hold shift + click to select a range
a2ce564
[compiler-rt][cmake] Test COMPILER_RT_HAS_AARCH64_SME with arm64 (#14…
usama54321 May 22, 2025
05494f3
[MLIR][LLVM] Tail call support for inline asm op (#140826)
bcardosolopes May 22, 2025
523d6c3
[NFC][TableGen] Code cleanup in StringMatcher (#141118)
jurahul May 22, 2025
c47260e
[CIR][NFC] Fix failing OpenACC NYI test (#141155)
andykaylor May 22, 2025
d0acddb
Revert "[StaticDataLayout][PGO]Implement reader and writer change for…
mingmingl-llvm May 22, 2025
1a4d588
[TableGen] Add missing $ before the dag operator name (#140969)
anemet May 22, 2025
e9304cb
[TSan][Test] Disable signal_recursive.cpp test on Darwin (#141135)
cachemeifyoucan May 22, 2025
d659648
Minor typo fix in IR2Vec section of MLGO doc (#141162)
svkeerthy May 22, 2025
34e63be
[clang-doc] Prevent copying loop variables (NFC)
DamonFool May 23, 2025
0635ef8
[LoongArch][NFC] Improve csrxchg instrinsic test case (#141060)
heiher May 23, 2025
720014f
Revert "[Modules] Don't fail when an unused textual header is missing…
vsapsai May 23, 2025
b79a624
[clang] Support ASan on WASI (#139014)
kateinoigakukun May 23, 2025
8268794
[clang-doc] Precommit test for correct conversion function names (#14…
evelez7 May 23, 2025
2b64b15
[HLSL][RootSignature] Add parsing of optional parameters for RootDesc…
inbelic May 23, 2025
5d76555
[NFC][HLSL][RootSignature] Use `operator<<` overload instead of dump …
inbelic May 23, 2025
3a84a4e
Reland "[NVPTX] Unify and extend barrier{.cta} intrinsic support" (#1…
AlexMaclean May 23, 2025
73b8330
[MLInlineAdvisor] Changing creation of TensorSpec in a type agnostic …
svkeerthy May 23, 2025
689342d
[Clang][LoongArch] Add inline asm support for the `q` constraint (#14…
heiher May 23, 2025
695d725
[lldb-dap] Assorted small fixes for runInTerminal (#140908)
SuibianP May 23, 2025
8d30c73
[mlir][docs] Fix typo in PassManagement.md (NFC) (#140891)
csstormq May 23, 2025
835bba9
[clang][Darwin] Add test checking for tls support on xros target trip…
cyndyishida May 23, 2025
c0e7a59
[BOLT] Remove redundant control flow statements (NFC) (#141182)
kazutakahirata May 23, 2025
6979ab2
[lldb] Remove redundant control flow statements (NFC) (#141183)
kazutakahirata May 23, 2025
9c62446
[mlir] Remove redundant control flow statements (NFC) (#141184)
kazutakahirata May 23, 2025
6464238
[mlir] Use llvm::stable_sort (NFC) (#141186)
kazutakahirata May 23, 2025
02ed6d8
[AST] Simplify string comparisons (NFC) (#141189)
kazutakahirata May 23, 2025
3280596
[clang][bytecode] Diagnose placement-new'ing to a temporary (#141099)
tbaederr May 23, 2025
044929d
[lldb] Change synthetic symbol names to have file address (#138416)
eronnen May 23, 2025
782c066
[MCA] Use a range-based for loop (NFC) (#141187)
kazutakahirata May 23, 2025
05674b2
[clang-tidy] Use std:::string::find with std::string_view (NFC) (#141…
kazutakahirata May 23, 2025
cc78177
[llvm] Use *Map::try_emplace (NFC) (#141190)
kazutakahirata May 23, 2025
3d02834
[CodeGen] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#1…
kazutakahirata May 23, 2025
61d5fdf
[MLIR] Add bufferization state class to OneShotBufferization pass (#1…
mscuttari May 23, 2025
f1cf168
[lldb/cmake] Remove a no-op statement (#141063)
labath May 23, 2025
be50ada
[clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions…
balazske May 23, 2025
f4e14bf
[Sema] Warn about omitting deprecated enumerator in switch (#138562)
zmodem May 23, 2025
62cae9c
[AArch64] Don't use LowerToPredicatedOp to shufflevector -> SVE lower…
MacDue May 23, 2025
6bb05ea
[pdb] Tweak the message about overflowing the publics/globals record …
zmodem May 23, 2025
34deb76
[X86] IsElementEquivalent - add handling for ISD::BITCASTS from small…
RKSimon May 23, 2025
a4380fe
[lldb/cmake] Remove special handling of OBJECT libraries (#141066)
labath May 23, 2025
2e12bad
[MLIR][Linalg] Fix insert_slice fusion with rank reduction (#130961)
RoboTux May 23, 2025
4f844e7
[OpenCL] No need to check array of struct for kernel arguments (#138894)
jiefwo May 23, 2025
8f1d1dd
[KeyInstr][Clang] Assignment atom group (#134637)
OCHyams May 23, 2025
86d1d4e
[RISC-V] Allow intrinsics to be used with any pointer type. (#139634)
hvdijk May 23, 2025
a58e2d1
[RISCV] Add compress patterns for qc.extu and qc.mvltui (#140682)
hchandel May 23, 2025
bb7e559
[AMDGPU] Correct bitshift legality transformation for small vectors (…
zGoldthorpe May 23, 2025
5c3a997
[KeyInstr][Clang] Member initalization atom (#134640)
OCHyams May 23, 2025
69d6c1f
Revert "[SPIR-V] Support `SPV_INTEL_int4` extension" (#141219)
MrSidims May 23, 2025
0967a6f
[Bazel] Adjust to 97dee78eb364efab6ddb57bc6580c55971994f41
akuegel May 23, 2025
127cc84
[Bazel] Followup: avoid dependency cycle
akuegel May 23, 2025
896ea58
[Bazel] Add back the clang-doc:lib dependency. Still needed.
akuegel May 23, 2025
6e574a4
[X86] lowerVECTOR_SHUFFLE - canonicalize zeros/ones/fp splat constant…
RKSimon May 23, 2025
bae8e1f
[MLIR][DRR] Fix inconsistent operand and arg index usage (#139816)
xl4624 May 23, 2025
b6c9c76
[Verifier] Add checks for range attribute on ImmArg (#140522)
durga4github May 23, 2025
435a542
[KeyInstr] Fix clang tests
OCHyams May 23, 2025
8c1f018
[MLIR] Add missing library in MLIRMLProgramTransforms target (#141210)
mscuttari May 23, 2025
0240129
[IVDesc] Unify RecurKinds [I|F]AnyOf (#118393)
artagnon May 23, 2025
319feac
[clang][bytecode] Fix AccessKinds in placement new CheckStore() call …
tbaederr May 23, 2025
6db8490
[mlir] Fix bazel build after 61d5fdf50c78. (#141224)
bartchr808 May 23, 2025
6179131
[mlir] explicitly delete copy ctor for DialectRegistry and OperationS…
makslevental May 23, 2025
989aadf
Revert "[mlir][affine] allow iter args as valid dims" (#140808)
ftynse May 23, 2025
d4f0f43
[Clang] Fix the access checking for non-aggregates in default argumen…
zyn0217 May 23, 2025
5530474
[Flang][OpenMP] fix crash on sematic error in atomic capture clause …
Mxfg-incense May 23, 2025
0f1277d
[NFC][AMDGPU] Move `flat_atomic.ll` to `llvm/test/CodeGen/AMDGPU/` (#…
shiltian May 23, 2025
0fa3ba7
[mlir][amx] Simplify intrinsic generation (#140559)
adam-smnk May 23, 2025
760bf4f
[GISel] Add KnownFPClass Analysis to GISelValueTrackingPass (#134611)
tgymnich May 23, 2025
123bf5f
[KeyInstr][Clang] If stmt atom (#134642)
OCHyams May 23, 2025
16fdb4f
[VectorCombine] Add tests with combine-able vector-extends.
fhahn May 23, 2025
6e98c8c
[mlir][linalg] Move vectorization tests for Tensor Ops (nfc) (#140877)
banach-space May 23, 2025
23a341e
[X86] vector-shuffle-combining-avx512bwvl.ll - regenerate test check
RKSimon May 23, 2025
683dcb8
initialized variable
hhkit May 23, 2025
eb37abe
[gn] port 50127ac054a0 (AttributeSpellingList.inc)
nico May 23, 2025
189d5da
[KeyInstr][Clang] Do stmt atom (#134644)
OCHyams May 23, 2025
fd1c4c3
[gn] port 97dee78eb364 (ClangDocTests config.h)
nico May 23, 2025
6bd3543
[KeyInstr][Clang] While stmt atom (#134645)
OCHyams May 23, 2025
50304b0
[MLIR][ODS] Fix properties tablegen wrapper to allow ADL lookup for h…
joker-eph May 23, 2025
34813d9
[Reassociate] Move Disjoint flag handling to OverflowTracking. (#140406)
fhahn May 23, 2025
23d4756
[OpenACC][CIR] Add lowering for 'copy' array indexes (#140971)
erichkeane May 23, 2025
a21fb74
[RISCV][TTI] Implement getPartialReductionCost for the vqdotq cases (…
preames May 23, 2025
53d7b1d
[LLDB] Add field member operators to DIL (#138093)
cmtice May 23, 2025
5ff1752
[clang-tools-extra] Add include mappings for <sys/uio.h> (#141216)
DaanDeMeyer May 23, 2025
7239841
[mlir] Fix bazel build after 61d5fdf v2. (#141235)
bartchr808 May 23, 2025
3c9812e
[LoopPeel] Add tests for peeling last iteration with multiple exits.
fhahn May 23, 2025
bbca78f
[PowerPC] vector shift word/double by element size - 1 use all ones (…
RolandF77 May 23, 2025
1bdec97
[DirectX] change makedouble return type to overloadTy (#141156)
spall May 23, 2025
204eb70
[mlir][Vector] Canonicalize empty `vector.mask` into `arith.select` (…
dcaballe May 23, 2025
52c2e45
[NFC][CodeGen] Adopt MachineFunctionProperties convenience accessors …
jurahul May 23, 2025
3f15b66
[SPARC] Use op-then-halve instructions when we have VIS3
koachan May 23, 2025
7dc7c15
[lldb] Adding a new decorator for CMAKE_BUILD_TYPE. (#141159)
ashgti May 23, 2025
51a03ed
Extend llvm objdump fatbin (#140286)
david-salinas May 23, 2025
7549f42
[HLSL][RootSignature] Add parsing of flags to RootDescriptor (#140152)
inbelic May 23, 2025
cd7104e
[libcxx] [test] Extend mingw target checks to cover the arm64ec archi…
mstorsjo May 23, 2025
9502d1b
[Clang][NFC] Move the type trait logic to a separate file. (#141245)
cor3ntin May 23, 2025
a2f72ed
[compiler-rt] [test] Don't apply the "arm" or "armhf" patterns for ta…
mstorsjo May 23, 2025
8e31e71
Merge branch 'main' into hhkit/irdl-to-cpp
hhkit May 23, 2025
fe09550
[gn] port 7dc7c155251
nico May 23, 2025
3e3b02f
[Object] Fix warnings
kazutakahirata May 23, 2025
9d10305
[gn build] Port 51a03ed27282
nico May 23, 2025
7c093ed
[gn build] Port 58ab005d8db2
nico May 23, 2025
710ef17
[gn build] Port 760bf4f116f9
nico May 23, 2025
21cbc8a
[gn build] Port 9502d1bcb27d
nico May 23, 2025
d045eb1
[gn build] Port ed75e2114fd4
nico May 23, 2025
01cb390
[gn] follow up to CLANG_DOC_TEST_ASSET_DIR
nico May 23, 2025
0cf3c43
[HWASan] Improve symbol indexing (#135967)
StefanBossbaly May 23, 2025
6087854
[lldb] skip unnamed symbol test on windows (#141212)
eronnen May 23, 2025
396278e
simplified cl flags
hhkit May 23, 2025
76141f8
Merge branch 'hhkit/irdl-to-cpp' of https://github.com/opencompl/llvm…
hhkit May 23, 2025
b878e0d
[LLDB] Fix warning about unused private members. (#141259)
cmtice May 23, 2025
6e91fb1
[llvm] Use llvm::erase_if (NFC) (#141185)
kazutakahirata May 23, 2025
961613b
[llvm] Fix a typo in documentation (#141204)
kazutakahirata May 23, 2025
dc8f2f0
Move GenericFloatingPointPredicateUtils to fix linkage (#141258)
tgymnich May 23, 2025
f5bfa9b
Merge branch 'main' into hhkit/irdl-to-cpp
hhkit May 23, 2025
26c5de5
minor change
hhkit May 23, 2025
7dc72a0
undo change
hhkit May 23, 2025
b2bb0f9
[lldb-dap] Minor change to stdio client name. (#141266)
ashgti May 23, 2025
7b4d2a0
Resolve Failing LIT test on Fuchsia (#141253)
david-salinas May 23, 2025
a2d717d
[RISCV] Prevent copying dummy_reg_pair_with_x0 in RISCVMakeCompressib…
topperc May 23, 2025
75d62ee
[RISCV] Correctly account for the copy cost of GPR pairs in RISCVMake…
topperc May 23, 2025
fe30cde
[mlir] Fix bazel build after 0fa3ba7. (#141241)
bartchr808 May 23, 2025
5efd1ae
[bazel] Fix up fe30cde29e20
d0k May 23, 2025
524ef16
[clang-doc] Avoid reading files in unit tests (#141269)
ilovepi May 23, 2025
99f1f0e
[CIR] Upstream comparison ops for VectorType (#140597)
AmrDeveloper May 23, 2025
afd3133
Revert "[compiler-rt][cmake] Test COMPILER_RT_HAS_AARCH64_SME with ar…
usama54321 May 23, 2025
9f5a670
[TableGen] !subst on a dag should retain name of operator (#141195)
anemet May 23, 2025
6520b21
[DTLTO][LLVM] Integrated Distributed ThinLTO (DTLTO) (#127749)
bd1976bris May 23, 2025
7b2fc48
[InstCombine] Remove dead poison check. NFCI (#141264)
lukel97 May 23, 2025
c6be456
[docs][mlgo] Document custom builds (#141243)
mtrofin May 23, 2025
441b967
[clang-doc] fix names of conversions for template parameters (#140856)
evelez7 May 23, 2025
1590ef3
[asan][test] Disable asan_lsan_deadlock test (#141145)
ilovepi May 23, 2025
e100f54
[LLD][CMake][MSVC] Install PDBs alongside executables (#126680)
mayanez May 23, 2025
795e889
[Clang][CMake][MSVC] Install PDBs alongside executables (#126961)
mayanez May 23, 2025
35c15e4
[lldb-dap] Fix address comparison in DisassembleRequestHandler (#140975)
eronnen May 23, 2025
672e926
Reapply "[VPlan] Support cloning initial VPlan (NFC)."
fhahn May 23, 2025
df03f7e
[flang][openacc] use location of end directive for exit operations (#…
akuhlens May 23, 2025
cd60ee9
[RISCV] Prevent using dummy_reg_pair_with_x0 in more places. (#141273)
topperc May 23, 2025
eb341f0
[clang-format][NFC] FormatTokenLexer.cpp cleanup (#141202)
owenca May 23, 2025
1d411f2
[libc++][NFC] Replace a few "namespace std" with the correct macro (#…
philnik777 May 23, 2025
77a3f81
[RISCV] Custom lower fixed length partial.reduce to zvqdotq (#141180)
preames May 23, 2025
faa4505
[MLIR][LLVM][DLTI] Handle data layout token 'Fn32' (#141167)
bcardosolopes May 23, 2025
1695e8b
[RISCV] Fix typo '==' instead of '='. NFC
topperc May 23, 2025
ea3c225
[CIR] Add alignment support for global, store, and load ops (#141163)
andykaylor May 23, 2025
a8be7a7
[clang-doc] Extract Info into JSON values (#138063)
ilovepi May 23, 2025
26fe803
[clang-doc] Implement setupTemplateValue for HTMLMustacheGenerator (#…
ilovepi May 23, 2025
b208016
CodeGen: Fix implementation of __builtin_trivially_relocate.
pcc May 24, 2025
e9dbf31
[NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (#…
qinkunbao May 24, 2025
d5802c3
[mlir] Optimize const values AffineMap::compose (#141005)
qazwsxedcrfvtg14 May 24, 2025
bb03cdc
RISCV: Remove shouldForceRelocation and unneeded relocations
MaskRay May 24, 2025
0c7853d
[ORC] Remove some ancient debugging output.
lhames May 24, 2025
7e09a00
[llvm-exegesis][Docs] --dump-object-to-disk option is specified by fi…
tclin914 May 24, 2025
dddcbc2
[Driver][LTO] Move common code for LTO to addLTOOptions() (#74178)
brad0 May 24, 2025
ccffa1d
[MC] Don't pass MCSubtargetInfo down to shouldForceRelocation and eva…
MaskRay May 24, 2025
89909d8
AVRAsmBackend: Don't use the MCSubtargetInfo argument
MaskRay May 24, 2025
f0ff2be
MCAsmBackend: Remove MCSubtargetInfo argument
MaskRay May 24, 2025
4b97c6e
[mlir][docs] Fix a typo
darkbuck May 23, 2025
c8f29e3
[clang][CIR] Fix tests after alignment support
darkbuck May 24, 2025
84f06b8
MCAsmBackend: Add member variable MCAssembler * and define getContext
MaskRay May 24, 2025
871b0a3
MCAsmBackend: Simplify applyFixup (#141333)
MaskRay May 24, 2025
15c9f27
MCAsmBackend: Remove the MCAssembler argument from shouldForceRelocation
MaskRay May 24, 2025
75dbda4
MCAsmBackend: Remove the MCAssembler argument from addReloc
MaskRay May 24, 2025
48056a7
MCAsmBackend: Simplify evaluateTargetFixup
MaskRay May 24, 2025
b5663d0
MCAsmBackend: Remove the MCAssembler argument from relax*
MaskRay May 24, 2025
e03b1b8
[CodeGen][MachineLoop] Fix getLoopID (#137820)
kortbeek-snps May 24, 2025
92cebab
[IPO] Teach AbstractAttribute::getName to return StringRef (NFC) (#14…
kazutakahirata May 24, 2025
ef2531b
[llvm-reduce] Remove unused includes (NFC) (#141322)
kazutakahirata May 24, 2025
8323335
[clang] Use llvm::any_of (NFC) (#141314)
kazutakahirata May 24, 2025
08a50bd
[clang-doc] Use llvm::any_of (NFC) (#141315)
kazutakahirata May 24, 2025
407df06
[lld] Use llvm::any_of (NFC) (#141316)
kazutakahirata May 24, 2025
c180d0c
[mlir] Use llvm::any_of (NFC) (#141317)
kazutakahirata May 24, 2025
d71dcfa
[XRay] Use llvm::is_contained (NFC) (#141318)
kazutakahirata May 24, 2025
0918361
[Analysis] Remove unused includes (NFC) (#141319)
kazutakahirata May 24, 2025
3bc174b
[CodeGen] Remove unused includes (NFC) (#141320)
kazutakahirata May 24, 2025
2faa45c
[MC] Remove unused includes (NFC) (#141321)
kazutakahirata May 24, 2025
6d1d937
[clang][AIX] Strip unknown environment component for per target runti…
jakeegan May 24, 2025
a8433b8
MCObjectwriter: Add member variable MCAssembler * and simplify code
MaskRay May 24, 2025
a6ca703
MIPS: Add 64r2 test to CodeGen/fp-maximumnum-minimumnum.ll (#141218)
wzssyqa May 24, 2025
0804ca8
[Clang] Explain why a type trait evaluated to false. (#141238)
cor3ntin May 24, 2025
af2a957
[AArch64] Consistently use/don't use glue with AArch64ISD nodes (NFC)…
MacDue May 24, 2025
a9b2998
[VPlan] Skip cost assert if VPlan converted to single-scalar recipes.
fhahn May 24, 2025
7cfdd74
[Sema] Fold variable into assert to avoid warnings. NFCI
d0k May 24, 2025
294643e
[clang][bytecode] Check lifetime of all ptr bases in placement-new (#…
tbaederr May 24, 2025
4b4699a
[InstCombine] Don't cover up poison elements for shifts when folding …
lukel97 May 24, 2025
8d374f1
github: Add llvm-reduce to PR autolabeler (#141335)
arsenm May 24, 2025
8f9549c
[InstCombine] Refactor fixed and scalable binop shuffle combine. NFCI…
lukel97 May 24, 2025
3f3b19d
[clang][NFC] Clean up SemaChecking.cpp (#141041)
tbaederr May 24, 2025
69f2ff3
[LV] Add test case showing unnecessary broadcast of invariant GEP idx.
fhahn May 24, 2025
aa452b6
[SLP]Restore insertion points after gathers vectorization
alexey-bataev May 24, 2025
1e48418
[VPlan] Strip dead includes in VPRecipeBuilder (NFC) (#141239)
artagnon May 24, 2025
2849b12
MCObjectwriter: Add getContext and simplify code
MaskRay May 24, 2025
e089d48
[VPlan] VPWidenGEPRecipe uses first lane of invariant indices (NFC)
fhahn May 24, 2025
1f3b6d8
[lld] Use llvm::less_second (NFC) (#141349)
kazutakahirata May 24, 2025
24c782e
[clang] Use llvm::partition_point (NFC) (#141351)
kazutakahirata May 24, 2025
4788d5f
[lldb] Use llvm::stable_sort (NFC) (#141352)
kazutakahirata May 24, 2025
47b9837
[llvm] Use std::tie to implement comparison functors (NFC) (#141353)
kazutakahirata May 24, 2025
13c3df9
[Bitcode] Remove unused includes (NFC) (#141354)
kazutakahirata May 24, 2025
64e8935
[LTO] Remove unused includes (NFC) (#141355)
kazutakahirata May 24, 2025
252bd80
[TableGen] Remove unused includes (NFC) (#141356)
kazutakahirata May 24, 2025
0ef8ef6
[Transforms] Remove unused includes (NFC) (#141357)
kazutakahirata May 24, 2025
3ac2b5c
[Serialization] Remove an unused local variable (NFC) (#141358)
kazutakahirata May 24, 2025
f3d9dff
[mlir] Use llvm::less_second (NFC) (#141350)
kazutakahirata May 24, 2025
346a72f
[LLVM] Add color to SDNode ID's when dumping (#141295)
jroelofs May 24, 2025
e373f7a
MC: Simplify recordRelocation
MaskRay May 24, 2025
fb99a85
[clang-tidy][NFC] Refactor `modernize-use-trailing-return-type-check`…
vbvictor May 24, 2025
4675f22
[clang-tidy] detect arithmetic operations within member list initiali…
RiverDave May 24, 2025
6bbaef1
Re-apply "[StaticDataLayout][PGO]Implement reader and writer change f…
mingmingl-llvm May 24, 2025
adaf170
ELFObjectWriter: Simplify useSectionSymbol and writeSymbol
MaskRay May 24, 2025
dcef154
[VPlan] Replace VPRegionBlock with explicit CFG before execute (NFCI)…
fhahn May 24, 2025
7d71a35
MCFixup: Remove FK_PCRel_ from getKindForSize
MaskRay May 24, 2025
7ff0cf6
MCObjectWriter: Remove the MCAssembler argument from writeObject
MaskRay May 24, 2025
2f3bc37
[PredicateInfo] Update comments for PredicateAssume (NFC) (#139269)
ftyghome May 24, 2025
abf1bfb
SPIRV: Simplify createObjectTargetWriter
MaskRay May 24, 2025
f093d7e
fix zstd_shared detection on mingw (#139945)
vtjnash May 24, 2025
1cc9e6e
[StaticAnalyzer] Use llvm::count (NFC) (#141370)
kazutakahirata May 24, 2025
fb14c83
[StaticAnalyzer] Use llvm::is_contained (NFC) (#141371)
kazutakahirata May 24, 2025
1ecc291
[RISCV] Use llvm::is_contained (NFC) (#141372)
kazutakahirata May 24, 2025
4eb91b9
[clang] Default-construct values with DenseMap::try_emplace (NFC) (#1…
kazutakahirata May 24, 2025
448d0ec
[Support] Use std::map::try_emplace (NFC) (#141374)
kazutakahirata May 24, 2025
c192d53
[AArch64] Remove unused includes (NFC) (#141375)
kazutakahirata May 24, 2025
1e8e662
[AMDGPU] Remove unused includes (NFC) (#141376)
kazutakahirata May 24, 2025
d4d8a0f
[ARM] Remove unused includes (NFC) (#141377)
kazutakahirata May 24, 2025
b77e36d
[RISCV] Remove unused includes (NFC) (#141378)
kazutakahirata May 24, 2025
13d7c60
[X86] Remove unused includes (NFC) (#141379)
kazutakahirata May 24, 2025
3793cc1
MCAsmBackend: Remove the MCAssembler argument from fixupNeedsRelaxati…
MaskRay May 24, 2025
7407165
M68k: Fix encodeRelocImm
MaskRay May 24, 2025
2b43657
Remove the MCAssembler argument from RISCVAsmBackend::isPCRelFixupRes…
MaskRay May 24, 2025
964aedb
RISCV,test: Move relocation-specific tests to Relocations/
MaskRay May 24, 2025
9662a60
[ELF,test] Make loongarch-reloc-leb128.s similar to riscv-reloc-leb128.s
MaskRay May 25, 2025
b754e40
MC: Remove redundant relocations for label differences
MaskRay May 25, 2025
7687261
ELFObjectWriter: Remove MCAssembler * arguments
MaskRay May 25, 2025
b65760b
MCObjectTargetWriter: Add getContext/reportError and use it for ELF
MaskRay May 25, 2025
9d3ea92
X86ELFObjectWriter: Avoid using the MCContext argument
MaskRay May 25, 2025
0e80be8
SystemZ: Replace Ctx.reportError with reportError
MaskRay May 25, 2025
068868d
ELFObjectWriter: Replace Ctx.reportError with reportError
MaskRay May 25, 2025
a438b23
AArch64ELFObjectWriter: Remove MCContext argument
MaskRay May 25, 2025
e933948
ARM,Sparc: Avoid using the MCContext & argument
MaskRay May 25, 2025
fe32806
ELFObjectWriter: Remove the MCContext argument from getRelocType
MaskRay May 25, 2025
d89084c
MCAssembler: Add reportError to simplify getContext().reportError
MaskRay May 25, 2025
3910a2c
[CI] Fix compute_projects.py unit tests
boomanaiden154 May 25, 2025
63adf07
ELFObjectWriter: Move Thumb-specific condition to ARMELFObjectWriter
MaskRay May 25, 2025
953302e
[flang][fir] Add FIR structured control flow ops to SCF dialect pass.…
NexMing May 25, 2025
f64f4f5
MCELFObjectTargetWriter::needsRelocateWithSymbol: Replace MCSymbol us…
MaskRay May 25, 2025
e3e949c
MCELFObjectTargetWriter::needsRelocateWithSymbol: Remove MCSymbol arg…
MaskRay May 25, 2025
1593bf4
[RISCV] Support LLVM IR intrinsics for XAndesVDot (#140223)
tclin914 May 25, 2025
bc0c4db
[SCEV] Add dedicated AffineAddRec matcher + loop matchers (NFC). (#14…
fhahn May 25, 2025
9a440f8
[analyzer] Ignore [[clang::flag_enum]] enums in the EnumCastOutOfRang…
steakhal May 25, 2025
c0506a1
[VPlan] Separate out logic to manage IR flags to VPIRFlags (NFC). (#1…
fhahn May 25, 2025
49c39ef
[llvm] FloatingPointPredicateUtils declare template specializations (…
tgymnich May 25, 2025
f755e66
[LoopPeel] Make sure AddRec is for correct loop when peeling last iter.
fhahn May 25, 2025
028f2dd
Merge branch 'main' into hhkit/irdl-to-cpp
hhkit May 25, 2025
47914c6
arrange alphabetically
hhkit May 25, 2025
2a4a43e
actually arrange alphabetically
hhkit May 25, 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
2 changes: 2 additions & 0 deletions mlir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ list(INSERT CMAKE_MODULE_PATH 0
)

include(AddMLIR)
include(IRDLToCpp)

# -BSymbolic is incompatible with TypeID
if("${CMAKE_SHARED_LINKER_FLAGS}" MATCHES "-Bsymbolic[^-]")
Expand Down Expand Up @@ -206,6 +207,7 @@ include_directories(BEFORE
# Adding tools/mlir-tblgen here as calling add_tablegen sets some variables like
# MLIR_TABLEGEN_EXE in PARENT_SCOPE which gets lost if that folder is included
# from another directory like tools
add_subdirectory(tools/mlir-irdl-to-cpp)
add_subdirectory(tools/mlir-linalg-ods-gen)
add_subdirectory(tools/mlir-pdll)
add_subdirectory(tools/mlir-tblgen)
Expand Down
3 changes: 3 additions & 0 deletions mlir/cmake/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ set(MLIR_CONFIG_TABLEGEN_EXE mlir-tblgen)
set(MLIR_CONFIG_PDLL_TABLEGEN_EXE mlir-pdll)
set(MLIR_CONFIG_SRC_SHARDER_TABLEGEN_EXE mlir-src-sharder)

set(MLIR_CONFIG_IRDL_TO_CPP_EXE mlir-irdl-to-cpp)

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/MLIRConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/MLIRConfig.cmake
Expand All @@ -135,6 +137,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/MLIRConfigVersion.cmake
${CMAKE_CURRENT_SOURCE_DIR}/AddMLIR.cmake
${CMAKE_CURRENT_SOURCE_DIR}/AddMLIRPython.cmake
${CMAKE_CURRENT_SOURCE_DIR}/IRDLToCpp.cmake
${CMAKE_CURRENT_SOURCE_DIR}/MLIRDetectPythonEnv.cmake
DESTINATION ${MLIR_INSTALL_PACKAGE_DIR}
COMPONENT mlir-cmake-exports)
Expand Down
9 changes: 9 additions & 0 deletions mlir/cmake/modules/IRDLToCpp.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function(add_irdl_to_cpp_target target irdl_file)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${irdl_file}.cpp.inc
COMMAND ${MLIR_IRDL_TO_CPP_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/${irdl_file} -o ${CMAKE_CURRENT_BINARY_DIR}/${irdl_file}.cpp.inc
DEPENDS ${MLIR_IRDL_TO_CPP_TARGET} ${irdl_file}
COMMENT "Building ${irdl_file}..."
)
add_custom_target(${target} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${irdl_file}.cpp.inc)
endfunction()
1 change: 1 addition & 0 deletions mlir/cmake/modules/MLIRConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(MLIR_INCLUDE_DIRS "@MLIR_CONFIG_INCLUDE_DIRS@")
set(MLIR_TABLEGEN_EXE "@MLIR_CONFIG_TABLEGEN_EXE@")
set(MLIR_PDLL_TABLEGEN_EXE "@MLIR_CONFIG_PDLL_TABLEGEN_EXE@")
set(MLIR_SRC_SHARDER_TABLEGEN_EXE "@MLIR_CONFIG_SRC_SHARDER_TABLEGEN_EXE@")
set(MLIR_IRDL_TO_CPP_EXE "@MLIR_CONFIG_IRDL_TO_CPP_EXE@")
set(MLIR_INSTALL_AGGREGATE_OBJECTS "@MLIR_INSTALL_AGGREGATE_OBJECTS@")
set(MLIR_ENABLE_BINDINGS_PYTHON "@MLIR_ENABLE_BINDINGS_PYTHON@")
set(MLIR_ENABLE_EXECUTION_ENGINE "@MLIR_ENABLE_EXECUTION_ENGINE@")
Expand Down
3 changes: 3 additions & 0 deletions mlir/include/mlir/InitAllTranslations.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#ifndef MLIR_INITALLTRANSLATIONS_H
#define MLIR_INITALLTRANSLATIONS_H

#include "mlir/Target/IRDLToCpp/TranslationRegistration.h"

namespace mlir {

void registerFromLLVMIRTranslation();
Expand All @@ -29,6 +31,7 @@ inline void registerAllTranslations() {
static bool initOnce = []() {
registerFromLLVMIRTranslation();
registerFromSPIRVTranslation();
registerIRDLToCppTranslation();
registerToCppTranslation();
registerToLLVMIRTranslation();
registerToSPIRVTranslation();
Expand Down
31 changes: 31 additions & 0 deletions mlir/include/mlir/Target/IRDLToCpp/IRDLToCpp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//===- TranslationRegistration.h - Register translation ---------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file defines the registration function for the IRDL to C++ translation.
//
//===----------------------------------------------------------------------===//

#ifndef MLIR_TARGET_IRDLTOCPP_IRDLTOCPP_H
#define MLIR_TARGET_IRDLTOCPP_IRDLTOCPP_H

#include "mlir/Dialect/IRDL/IR/IRDL.h"

namespace mlir {
namespace irdl {

/// Translates an IRDL dialect definition to a C++ definition that can be used
/// with MLIR.
///
/// TODO: Document define flags to obtain declaration or definition.
LogicalResult translateIRDLDialectToCpp(irdl::DialectOp dialect,
raw_ostream &output);

} // namespace irdl
} // namespace mlir

#endif // MLIR_TARGET_IRDLTOCPP_IRDLTOCPP_H
22 changes: 22 additions & 0 deletions mlir/include/mlir/Target/IRDLToCpp/TranslationRegistration.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//===- TranslationRegistration.h - Register translation ---------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file defines the registration function for the IRDL to C++ translation.
//
//===----------------------------------------------------------------------===//

#ifndef MLIR_TARGET_IRDLTOCPP_TRANSLATIONREGISTRATION_H
#define MLIR_TARGET_IRDLTOCPP_TRANSLATIONREGISTRATION_H

namespace mlir {

void registerIRDLToCppTranslation();

} // namespace mlir

#endif // MLIR_TARGET_IRDLTOCPP_TRANSLATIONREGISTRATION_H
1 change: 1 addition & 0 deletions mlir/lib/Target/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_subdirectory(Cpp)
add_subdirectory(IRDLToCpp)
add_subdirectory(SPIRV)
add_subdirectory(LLVMIR)
add_subdirectory(LLVM)
18 changes: 18 additions & 0 deletions mlir/lib/Target/IRDLToCpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
add_mlir_translation_library(MLIRTargetIRDLToCpp
TranslationRegistration.cpp
IRDLToCpp.cpp
Templates/DialectDecl.txt
Templates/DialectDef.txt
Templates/Header.txt
Templates/PerOperationDecl.txt
Templates/PerOperationDef.txt
Templates/TypeDecl.txt
Templates/TypeDef.txt
Templates/TypeHeaderDecl.txt
Templates/TypeHeaderDef.txt

LINK_LIBS PUBLIC
MLIRIR
MLIRIRDL
MLIRTranslateLib
)
Loading