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