-
Notifications
You must be signed in to change notification settings - Fork 47
Update llvm version #1752
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
Merged
Merged
Update llvm version #1752
Changes from 214 commits
Commits
Show all changes
216 commits
Select commit
Hold shift + click to select a range
0d83653
init; changelog
paul0403 fb9c6db
boilerplate
paul0403 62a3f5a
missing namespace
paul0403 81e6e97
missing include
paul0403 6242a0b
typo
paul0403 7c149d0
(cherry pick) Add ForwardOp Bufferization
tzunghanjuang 5504e29
move over Tzunghan's old work
paul0403 fcc0424
adjoint op
paul0403 a310d05
backprop op
paul0403 2e26140
add adjoint test with multiple results
paul0403 b7f62ae
some cleanup on backprop
paul0403 d113b4a
clean up backprop
paul0403 6282518
test file rename
paul0403 277f547
changelog
paul0403 5419116
update backprop test
paul0403 19e25f8
do not manually copy the cotangents for backprop
paul0403 0962b81
use ValueRange instead of vector
paul0403 7273e4e
update comment about backprop's mem write
paul0403 4714f3c
move over Tzunghan's forward and reverse
paul0403 4d995e7
try CI
paul0403 d037193
format
paul0403 14b8599
remove old gradient bufferization
paul0403 b98c9ea
clean prints
paul0403 d3389a9
Merge remote-tracking branch 'origin/main' into paul0403/new_bufferiz…
paul0403 89e0bbd
format
paul0403 491cfa1
add gradient preprocessing test
paul0403 c7b57f2
easier on the eyes
paul0403 128978b
reverse op preprocessing test
paul0403 bc3caf9
add bufferization test for forward and reverse
paul0403 1eb49c1
add post processing test for forward and reverse
paul0403 eff06f4
Merge remote-tracking branch 'origin/main' into paul0403/new_bufferiz…
paul0403 a194c06
make most dialects into one-shot-bufferize(dialect)
paul0403 66f043f
a stable version before trying one-shot-bufferize pass
paul0403 3ae9083
try one-shot
paul0403 e35b25e
Merge remote-tracking branch 'origin/main' into paul0403/new_bufferiz…
paul0403 ad3a83c
try new llvm (with Tzunghan's patches already in upstream)
paul0403 642ebcd
update llvm to 7f04a8ad131881b5a58b97c8191733ed42d18e20
paul0403 6a5a2f8
GreedyRewriteConfig.enableRegionSimplification is no longer just a pl…
paul0403 18ac813
update TopologicalSortUtils.h location
paul0403 4f18b6c
include <variant>
paul0403 335220e
track llvm and mhlo versions to jax 0.4.32
paul0403 9ed0272
update llvm and mhlo submodules to jax 0.4.32 versions
paul0403 e4a9c19
.dep-versions format :sweat-smile:
paul0403 5a48957
enzymestatic-19 -> 20
paul0403 2d1d1d6
MhloQuantToIntConversion is removed
paul0403 aaf3771
`translateModuleToLLVMIR` got a new argument `disableVerification`
paul0403 5b870ca
just comment out old bufferization passes in cpp pipeline for now
paul0403 5f5d94d
Remove optional modifier from unit attribute (#1746)
ritu-thombre99 7432b03
applyPatternsAndFoldGreedily -> applyPatternsGreedily
paul0403 b155169
pattern rewtier no longer has `match` the `rewrite`.
paul0403 b4be79d
`GreedyRewriteConfig` no longer has `strictMode` and `enableRegionSim…
paul0403 1a2c907
Update set_dep_version to account for jax repo rename
mehrdad2m c9e1b95
Update Enzyme to latest version
mehrdad2m 506d083
update llvm and mhlo to compatiable tags required by jax v0.6.0
mehrdad2m b3f352c
Merge branch 'paul0403/one-shot-bufferize-final' into paul0403/update…
mehrdad2m dd04fb9
change the functionArgTypeConverterFn in gradient bufferization to ta…
paul0403 5e9d75c
use one-shot bufferization in python pipeline
paul0403 e306252
update llvm to the commit that has
paul0403 83f6fc2
add restrict unitattr to the ToTensorOps in gradient lowering pass
paul0403 ffb2c60
GreedyRewriteConfig.enableRegionSimplification is no longer just a pl…
paul0403 1848bed
update TopologicalSortUtils.h location
paul0403 9b090f3
include <variant>
paul0403 93ff924
track llvm and mhlo versions to jax 0.4.32
paul0403 ece1c6d
update llvm and mhlo submodules to jax 0.4.32 versions
paul0403 7dfd0cc
.dep-versions format :sweat-smile:
paul0403 b628f47
enzymestatic-19 -> 20
paul0403 d2bc0b6
MhloQuantToIntConversion is removed
paul0403 3790a68
`translateModuleToLLVMIR` got a new argument `disableVerification`
paul0403 f370449
just comment out old bufferization passes in cpp pipeline for now
paul0403 268bc64
update cpp pipeline
paul0403 d3a75ab
turn on `copy-before-write` for async
paul0403 6e0d8df
Merge remote-tracking branch 'origin/main' into paul0403/new_bufferiz…
paul0403 a55e941
Add Tzunghan as author
paul0403 0739553
changelog
paul0403 0fc83a5
Use `eliminate-empty-tensors` pass instead of `empty-tensor-to-alloc-…
paul0403 b8895ed
add `restrict` attr to to_tensor ops in mlir lit test
paul0403 26d8f50
line-too-long on the python bufferization options string
paul0403 d5cdb13
skip upstream ml_dtypes lit test
paul0403 ef323be
Update mlir lit tests impacted by mlir update.
paul0403 692cf99
Merge remote-tracking branch 'origin/main' into paul0403/new_bufferiz…
paul0403 0e88009
enzymestatic-19 -> 20
paul0403 e04b79f
Merge remote-tracking branch 'origin/main' into paul0403/new_bufferiz…
paul0403 1550045
Merge remote-tracking branch 'origin/paul0403/new_bufferize_gradient_…
paul0403 e347497
remove llvm keyword from comment
mehrdad2m 018b493
Merge remote-tracking branch 'origin/paul0403/one-shot-bufferize-fina…
paul0403 6c4fa07
Merge remote-tracking branch 'origin/paul0403/update_llvm' into paul0…
paul0403 6af9f91
checkout to an earilier mhlo commit without the build bug
paul0403 33d482d
go back to the llvm and mhlo versions tracked by jax 0.6.0
paul0403 4a13d73
install nanobind==2.4 before building llvm
mehrdad2m 05ef90b
enzymestatic-20 -> 21
paul0403 6eadec2
Patch enzyme's dependency on nvidia fabs llvm intrinsics
paul0403 7304b9f
patch away shardy in mhlo
paul0403 87aacce
just avoid CI enzyme cache for now
paul0403 e99392d
typo
paul0403 1d27581
more typo
paul0403 32220e5
The enzyme right now is db0181320d6e425ee963bd496ed0d8dbb615be18
paul0403 5113a23
Merge remote-tracking branch 'origin/main' into paul0403/update_llvm
paul0403 1d3f3e3
valuerange/typerange mixup from some git mixup before
paul0403 3c6fbed
a missed override removel on match/rewrite
paul0403 fb2bbf1
'applyOpPatternsAndFold' is deprecated: Use applyOpPatternsGreedily()…
paul0403 41933e4
mlir::LLVM::lookupOrCreateFn() now returns FailureOr<llvmfuncop> inst…
paul0403 1eb8c9b
four missed match/rewrite overrides
paul0403 252c494
a missed applyPatternsGreedily
paul0403 f080ce6
```
paul0403 1523018
more match/rewrite override and applypatternsgreedily
paul0403 2cafd50
override
paul0403 d1f52eb
override
paul0403 2123432
another lookuporcreate/FailureOr/.value()
paul0403 40d42c8
merge `match()` and `rewrite()` into `matchAndRewrite()` for a bunch …
paul0403 a485d9e
return success() in all branches in gradient return op conversion pat…
paul0403 5aeca47
OneShotBufferizationOptions -> OneShotBufferizePassOptions
paul0403 3687033
one-shot bufferization layout options don't have to be lambdas!
paul0403 a6e4fbe
mlir::call_interface_impl::resolveCallable
paul0403 7fff30f
format
paul0403 26ffeb0
machine target triples no longer do the `Triple`->`std::string`->`Tri…
paul0403 ad96d6e
ops with CallOpInterface must have two new optional attrs `arg_attrs`…
paul0403 9306998
createBufferizationToMemRefPass -> createConvertBufferizationToMemRef…
paul0403 fd219d0
mhlo removed 3 passes:
paul0403 24e9cce
createConvertSCFToCFPass -> createSCFToControlFlowPass :sweat_smile_a…
paul0403 d0ee361
-buffer-deallocation pass is removed. Use -ownership-based-buffer-dea…
paul0403 02ea1f0
typo
paul0403 2a457a4
--buffer-deallocation is removed.
paul0403 df8a289
3 missed matchAndRewrite migration
paul0403 51050d9
the three removed stablehlo passes are necessary.
paul0403 a0f6d69
enable --buffer-deallocation-pipeline;
paul0403 95bbe03
OpAdaptor -> OneToNOpAdaptor for listpush, pop, dealloc ops in cataly…
paul0403 45be033
mhlo patch TODO cleanup
paul0403 759ce19
Fix adjoint gradient.
paul0403 36a11b8
GreedyRewriteConfig.strictMode, enableRegionSimplification, maxIterat…
paul0403 d060f06
the lowering of cf::AssertOp to llvm was split from the overall --con…
paul0403 aab184d
a missed `OneToNOpAdaptor` on catalyst.list_load_data op
paul0403 2749846
bufferization.to_memref updated assembly format:
paul0403 e248670
add expval return in gradient adjoint's to-llvm lowering lit test
paul0403 b10f0e8
to_tensor and to_memref add `to` in assembly format in gradient postp…
paul0403 6e3c0c9
totensor tomemref assembly format in catalyst conversion lit test
paul0403 9f050c2
update quantum conversion lit test:
paul0403 9e2cc07
temporarily diable Quantum/AllocationTest.mlir
paul0403 bc1b37a
gradient adjoint minor update: don't just force a return type
paul0403 f8f9fe3
a std::optional include order
paul0403 4037fb7
typo
paul0403 e198cd3
move QuantumResource from quantum ops to quantum dialect
paul0403 21d9dba
MQBC measurement in basis has QuantumMemory read/write
paul0403 1dbd529
add quantum memory effects to quantum ops
paul0403 860512f
gates only read, do not write
paul0403 aa1957d
Add mem effects to gradient ops.
paul0403 3b85584
Add mem effects to catalyst.list ops
paul0403 82ac61f
printop is mem read and alloc
paul0403 e487a2e
assert op is memwrite
paul0403 7790d5e
global phase needs to write
paul0403 5c5ac37
xfail three gradient tests
paul0403 e1013fd
Quantum/AllocationTest.mlir uses the removed --buffer-deallocation pa…
paul0403 534150e
Merge remote-tracking branch 'origin/main' into paul0403/update_llvm
paul0403 6fd2dba
changelog
paul0403 e1d3c96
add buffer deallocation pipeline pass in cpp pipeline
paul0403 8a2b317
don't walk in the adjoint lowering pass when erasing device release a…
paul0403 31d98be
remove commented-out `bufferizesToAllocation` methods
paul0403 1ede6fb
git-style patch shardy
paul0403 03ada9e
git-style patch removed mhlo passes
paul0403 21bf3ac
mem alloc -> write on print op
paul0403 2acb631
fix enzyme tbaa: some `index` ops are pointers, but we used to always…
paul0403 281df43
is CI auto merging main??
paul0403 0ca7dc8
Merge remote-tracking branch 'origin/main' into paul0403/update_llvm
paul0403 6786286
a `applyPatternsAndFoldGreedily` fix from new stuff on main
paul0403 04c526d
add "compilers developers only" in changelog
paul0403 ab31034
just return the reg in quantum/allocation list test instead of a manu…
paul0403 d00284c
Update mlir/lib/Quantum/Transforms/emit_catalyst_pyface.cpp
paul0403 6897130
Update mlir/lib/Catalyst/Transforms/InlineNestedModules.cpp
paul0403 611d094
Update mlir/lib/Catalyst/Transforms/InlineNestedModules.cpp
paul0403 2112b21
Update mlir/lib/Catalyst/Transforms/DetectQNodes.cpp
paul0403 f0dd569
plumbing savepoint
paul0403 376e606
revert all added mem effects in tablegen
paul0403 6971a48
add back old buffer dealloc pass; credit llvm authors
paul0403 78212d1
restore quantum allocation test (that was impacted by buffer dealloc …
paul0403 3bfb843
Merge remote-tracking branch 'origin/main' into paul0403/update_llvm
paul0403 0f54789
remove "For example, a gate operation will both read from and write t…
paul0403 e9fbb2d
git apply --check on mhlo; remove "clean-mhlo" at the start of "make …
paul0403 c44deb2
Update tutorial to reflect the removal of separate match and rewrite …
mehrdad2m 59ccb5a
add back bufferizesToAllocation
paul0403 b04b059
remove mhlo-Add-PassesIncGen-in-transforms-CMakeList.patch
paul0403 b85e6a1
pin nanobind==2.4 to requirements.txt
paul0403 8fa6fd9
Update mlir/lib/Gradient/Transforms/GradMethods/Adjoint.cpp
paul0403 5b32057
getTerminator directly for returnop in grad adjoint
paul0403 4cc38e4
use mapper to avoid iterating within the clone
paul0403 034098e
collect everything by iterating over `callee` once at the beginning
paul0403 f98af5d
remove buffer dealloc patch (we patch this entire pass now anyways)
paul0403 901478e
update patches in CI wheels script
paul0403 ed563b0
fix patch path in wheels script
paul0403 65350a3
fix wheel script again (no need to cd)
paul0403 8ff300f
remove ;\ in make clean-mhlo
paul0403 7a7e763
dyncast->cast
paul0403 04a221b
wheels script (where is $GITHUB_WORKSPACE??)
paul0403 90a184f
indent back in quantumops tablegen
paul0403 13853d5
return when we see non expval measurements
paul0403 1240c6a
only one device release; allow multiple expval; remove added expval i…
paul0403 5d249e2
one block = no unstructured control flow
paul0403 ed103bd
changelog add link; use "mlih-hlo"
paul0403 78ab6f1
(wheels script) I do need to cd...
paul0403 84ddaaf
(wheels script) I'm very confused
paul0403 2cd9f34
(wheels script) actually, no need to check patch success in wheels CI
paul0403 24d96ca
check that memref is the first two args to dealloc helper
paul0403 b6833bf
check for arg number in TBAA dealloc helper checker
paul0403 4aa8ddc
Merge remote-tracking branch 'origin/main' into paul0403/update_llvm
paul0403 f7455dd
backward slice in isFromExtractAlignedPointerAsIndexOp
paul0403 76613a2
(wheels script) `pushd . && cd blad` -> `pushd blah`
paul0403 af74ac6
wheels CI
paul0403 c2e8247
wheels CI check mhlo, delete cache
paul0403 f399ec8
pushd not cd-ing?
paul0403 d8aa363
remove prints in wheels script
paul0403 cff7ea1
clean all mhlo CI cache and try wheels
paul0403 5449518
wheels build passed, check standard CI
paul0403 36fdf95
clean CI cache and try again
paul0403 33e287f
small change to mhlo cache key (the old one is stuck in a reserved st…
paul0403 38cd129
nanobind requirement is >=2.4, no need to be 2.4 exactly
paul0403 0084fe7
explain why nanobind>=2.4 in requirements.txt
paul0403 ece9f19
Update requirements.txt
paul0403 6f4c162
Update .github/workflows/check-catalyst.yaml
paul0403 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
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
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
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.