Skip to content

Refactor XIR #192

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 158 commits into from
Jun 16, 2025
Merged
Changes from 1 commit
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
83dd2aa
Make barrier read layout support reorder
MaxwellGengYF Apr 14, 2025
91c7201
import_external_image
Apr 15, 2025
32cd794
add release() to resource
MaxwellGengYF Apr 15, 2025
ac5fb51
Merge remote-tracking branch 'fork/next' into next
Apr 15, 2025
11cb1ab
update
Apr 15, 2025
f88998d
add promote_ref_args pass
Mike-Leo-Smith Apr 15, 2025
239377c
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith Apr 15, 2025
6dd6155
Update device.h
Mike-Leo-Smith Apr 15, 2025
6fd653d
Update image.h
Mike-Leo-Smith Apr 15, 2025
dc706dc
Update device.h
Mike-Leo-Smith Apr 15, 2025
9338b2f
Update client_interface.h
Mike-Leo-Smith Apr 15, 2025
74f5a18
Update cuda_device.h
Mike-Leo-Smith Apr 15, 2025
0f3759f
minor
Mike-Leo-Smith Apr 15, 2025
0906013
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith Apr 15, 2025
af6934f
fix build
Mike-Leo-Smith Apr 15, 2025
1c063d2
minor
Mike-Leo-Smith Apr 15, 2025
817c7f8
make hlsl codegen independent
MaxwellGengYF Apr 16, 2025
faa346b
compat with gcc 11
Mike-Leo-Smith Apr 16, 2025
c458fab
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith Apr 16, 2025
dfe826a
fix mem2reg
Mike-Leo-Smith Apr 16, 2025
9a84926
fix
Mike-Leo-Smith Apr 16, 2025
e101c96
???
Mike-Leo-Smith Apr 16, 2025
dd7f92e
I believe I have fixed
Mike-Leo-Smith Apr 16, 2025
f7d734a
???
Mike-Leo-Smith Apr 16, 2025
ba1e3da
???
Mike-Leo-Smith Apr 16, 2025
4932c96
trying to fix
Mike-Leo-Smith Apr 16, 2025
30b922e
tensor interface
MaxwellGengYF Apr 21, 2025
07950b3
Fix fking msvc
MaxwellGengYF Apr 21, 2025
592fa31
enable test
MaxwellGengYF Apr 21, 2025
e0d3deb
tensor fallback backend
MaxwellGengYF Apr 22, 2025
120e112
running test_tensor (output tensor wip)
MaxwellGengYF Apr 22, 2025
75a934a
gemm is working
MaxwellGengYF Apr 22, 2025
a4f5f20
fix: explicit, typo and hint
sailing-innocent Apr 23, 2025
b693144
make api looks better
MaxwellGengYF Apr 23, 2025
29c0f1a
generate some test cases for gemm
sailing-innocent Apr 23, 2025
e758c84
Merge branch 'next-tensor' of github.com:LuisaGroup/LuisaCompute into…
sailing-innocent Apr 23, 2025
d0d8e76
Allow present failed
MaxwellGengYF Apr 25, 2025
858587a
Merge branch 'next' into next-tensor
MaxwellGengYF Apr 25, 2025
431fabc
softmax wip
MaxwellGengYF Apr 25, 2025
897ff06
shader manager, init value
MaxwellGengYF Apr 25, 2025
89bf53a
Make captured tensor
MaxwellGengYF Apr 26, 2025
f30ba04
Fix state conflict
MaxwellGengYF Apr 27, 2025
191343c
Update EnhancedBarrierTracker.cpp
MaxwellGengYF Apr 27, 2025
703a171
softmax shader
MaxwellGengYF Apr 27, 2025
c508cfc
Update softmax_impl.cpp
MaxwellGengYF Apr 27, 2025
df670ce
Add custom logger option
MaxwellGengYF Apr 28, 2025
eb43f24
Fix logging
MaxwellGengYF Apr 28, 2025
ac3479b
remove some useless spectrum data convertion
OEOTYAN May 4, 2025
ec54ef4
approx illuminance with average xyz value
OEOTYAN May 4, 2025
b30651f
Merge pull request #188 from OEOTYAN/stable
MaxwellGengYF May 5, 2025
a3b38e7
Fix build
MaxwellGengYF May 5, 2025
b5ebbe1
DRED
MaxwellGengYF May 6, 2025
2b8a414
Update logging.h
MaxwellGengYF May 6, 2025
7b8d278
Minor fix
MaxwellGengYF May 7, 2025
c83a44a
rename pch
MaxwellGengYF May 7, 2025
2d6936b
DRED output Auto-Breadcrumbs
May 7, 2025
0451ca3
Merge branch 'next' of https://github.com/infancy/LuisaCompute into next
May 7, 2025
de683a3
Merge pull request #189 from infancy/next
MaxwellGengYF May 8, 2025
04bb09a
dred switch-off
MaxwellGengYF May 8, 2025
414a42e
Fix toy_c backend
MaxwellGengYF May 8, 2025
de4f6ef
minor
MaxwellGengYF May 8, 2025
d749770
Make simul-access a log
MaxwellGengYF May 8, 2025
6d50557
DRED output to log file
May 8, 2025
b0a835d
Merge pull request #190 from infancy/next
MaxwellGengYF May 8, 2025
eb50197
Minor
MaxwellGengYF May 8, 2025
e71cd70
Add hlsl compile debug info in debug-mode
MaxwellGengYF May 12, 2025
5b7b9e6
Merge branch 'stable' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith May 12, 2025
35db136
revise dce
Mike-Leo-Smith May 12, 2025
0ad95fe
minor
Mike-Leo-Smith May 12, 2025
d7d2ad0
get name
MaxwellGengYF May 12, 2025
0e0bb93
check return in rq
Mike-Leo-Smith May 14, 2025
4c5da71
Some dx magic, I guess
MaxwellGengYF May 15, 2025
d79944c
fix lower_ray_query_loop pass
Mike-Leo-Smith May 15, 2025
cd5641a
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith May 15, 2025
52177f0
add some check
Mike-Leo-Smith May 15, 2025
dbd0654
add some check
Mike-Leo-Smith May 15, 2025
fe8e622
Add process lock to clang-cxx
MaxwellGengYF May 16, 2025
510f805
Update EASTL
MaxwellGengYF May 20, 2025
3f12dea
Add helper resource state usage
MaxwellGengYF May 21, 2025
abf23d1
Fix msvc build
MaxwellGengYF May 21, 2025
5829cc1
Fix hlsl raster codegen
MaxwellGengYF May 22, 2025
8a62683
update ext
MaxwellGengYF May 22, 2025
f61b168
Update binary_io.h
MaxwellGengYF May 28, 2025
a912443
Add agility sdk option
MaxwellGengYF May 29, 2025
a3f687f
Add no_rtti option
MaxwellGengYF May 29, 2025
8c36c6d
wip: managed intrusive list
Mike-Leo-Smith May 30, 2025
2d4461f
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith May 30, 2025
b74e4fb
Merge branch 'stable' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith May 30, 2025
97a7d46
fix managed ptr and list
Mike-Leo-Smith May 30, 2025
30d96e8
fix intrusive forward list and add tests
Mike-Leo-Smith May 30, 2025
0c437aa
fix build on macOS
Mike-Leo-Smith May 30, 2025
54b48f8
better test
Mike-Leo-Smith May 30, 2025
54261c3
minor
Mike-Leo-Smith May 30, 2025
12da4c9
fix build with earlier clang
Mike-Leo-Smith May 30, 2025
44474df
use new ilist in XIR metadata
Mike-Leo-Smith May 30, 2025
b22d8cd
fix build
Mike-Leo-Smith May 30, 2025
48d3926
fix new ilist node impl
Mike-Leo-Smith May 30, 2025
5186729
replace XIR::Use with new ilist node
Mike-Leo-Smith May 30, 2025
8134cff
add canary in managed object
Mike-Leo-Smith May 30, 2025
dcce572
minor
Mike-Leo-Smith May 30, 2025
21c976a
minor
Mike-Leo-Smith May 30, 2025
4564e7b
add hash specialization for luisa::ManagedPtr
Mike-Leo-Smith Jun 1, 2025
352f8c6
Add rtti settings
MaxwellGengYF Jun 1, 2025
d534de1
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into dev-re…
Mike-Leo-Smith Jun 2, 2025
8ac565c
DX support debug argument
MaxwellGengYF Jun 4, 2025
9227db2
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into dev-re…
Mike-Leo-Smith Jun 4, 2025
a56ec77
fixing compilation
Mike-Leo-Smith Jun 4, 2025
e4e55dd
fixed compilation
Mike-Leo-Smith Jun 4, 2025
0d931c8
fixing
Mike-Leo-Smith Jun 4, 2025
51a94c5
add check
Mike-Leo-Smith Jun 4, 2025
7f717eb
fix sentinel constant
Mike-Leo-Smith Jun 4, 2025
b801ed6
fix block removal in dce
Mike-Leo-Smith Jun 4, 2025
5acaf15
fix dce removal count
Mike-Leo-Smith Jun 4, 2025
e4f0cd9
better opt format
Mike-Leo-Smith Jun 4, 2025
9fbdd73
fix parent block
Mike-Leo-Smith Jun 4, 2025
d354649
fix build
Mike-Leo-Smith Jun 4, 2025
aacbaf5
fix build
Mike-Leo-Smith Jun 4, 2025
a1c8ef9
trying to fix build
Mike-Leo-Smith Jun 4, 2025
49f8eb3
trying to fix ci
Mike-Leo-Smith Jun 4, 2025
a19d580
???
Mike-Leo-Smith Jun 4, 2025
60f0bdb
trying to enable fallback backend
Mike-Leo-Smith Jun 4, 2025
eaa8e68
trying to enable fallback backend
Mike-Leo-Smith Jun 4, 2025
c92c950
fix build
Mike-Leo-Smith Jun 4, 2025
a6a372e
minor format
Mike-Leo-Smith Jun 4, 2025
d1c3c63
fix macOS build
Mike-Leo-Smith Jun 4, 2025
c6faec1
???
Mike-Leo-Smith Jun 4, 2025
54d6ee0
trying to fix vulkan
Mike-Leo-Smith Jun 4, 2025
69bce83
less verbose ci
Mike-Leo-Smith Jun 4, 2025
6f46995
auto handle CMAKE_OSX_SYSROOT
Mike-Leo-Smith Jun 5, 2025
4456b86
Disable enhanced barrier for NV's bug
MaxwellGengYF Jun 5, 2025
00ab01b
fix macOS build on CI
Mike-Leo-Smith Jun 5, 2025
171cc47
fix fallback backend build when vulkan is not available
Mike-Leo-Smith Jun 5, 2025
dcd8e19
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith Jun 6, 2025
24c6c26
[clangcxx] support enum types
SaeruHikari Jun 10, 2025
06c7024
support enum
SaeruHikari Jun 10, 2025
ef5d366
fix static method call
SaeruHikari Jun 10, 2025
2c4966d
Update OptionsParser.cpp
MaxwellGengYF Jun 10, 2025
2a15ec6
Cull LMDB construct in headless mode
MaxwellGengYF Jun 11, 2025
0918e80
extern var as kernel inputs
SaeruHikari Jun 11, 2025
fff40e5
start compile from entries only
SaeruHikari Jun 12, 2025
9f32394
Update ext
MaxwellGengYF Jun 12, 2025
3abfc18
Merge branch 'next' of https://github.com/LuisaGroup/LuisaCompute int…
MaxwellGengYF Jun 12, 2025
aecdc39
Get Reflection
MaxwellGengYF Jun 12, 2025
fda0683
Minor fix
MaxwellGengYF Jun 12, 2025
ba20a29
More clangcxx reflection data
MaxwellGengYF Jun 13, 2025
1b80bfb
trying to fix build
Mike-Leo-Smith Jun 13, 2025
55e4409
fix imgui
Mike-Leo-Smith Jun 13, 2025
22ebe35
Fix vulkan compile
MaxwellGengYF Jun 14, 2025
5cdb0c6
vk wip
MaxwellGengYF Jun 15, 2025
e7aec80
fix build
Mike-Leo-Smith Jun 16, 2025
00ad30b
Merge branch 'stable' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith Jun 16, 2025
da45f50
trying to fix
Mike-Leo-Smith Jun 16, 2025
55e50d5
Copy and dispatch command
MaxwellGengYF Jun 16, 2025
01b69ba
revert
Mike-Leo-Smith Jun 16, 2025
60b3c76
Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next
Mike-Leo-Smith Jun 16, 2025
f460f06
update sdk url and hash
Mike-Leo-Smith Jun 16, 2025
8c34f69
fix build
Mike-Leo-Smith Jun 16, 2025
fb53a05
good for both eastl and stl
Mike-Leo-Smith Jun 16, 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
Prev Previous commit
Next Next commit
fix static method call
  • Loading branch information
SaeruHikari committed Jun 10, 2025
commit ef5d3661be31510e21c567b1e5ee7c356f387f0f
4 changes: 2 additions & 2 deletions src/clangcxx/src/llvm/ASTConsumer.cpp
Original file line number Diff line number Diff line change
@@ -984,7 +984,6 @@ struct ExprTranslator : public clang::RecursiveASTVisitor<ExprTranslator> {
if (auto mcall = llvm::dyn_cast<clang::CXXMemberCallExpr>(x)) {
auto caller = stack->callers.back();
stack->callers.pop_back();

lcArgs.emplace_back(caller);// from -MemberExpr::isBoundMemberFunction
}
for (auto arg : call->arguments()) {
@@ -1200,6 +1199,7 @@ auto FunctionBuilderBuilder::build(const clang::FunctionDecl *S, bool allowKerne
bool is_scope = false;
bool is_method = false;
bool is_lambda = false;
bool is_static = S->isStatic();;
QualType methodThisType;

auto params = S->parameters();
@@ -1248,7 +1248,7 @@ auto FunctionBuilderBuilder::build(const clang::FunctionDecl *S, bool allowKerne
clangcxx_log_error("unfound this type [{}] in method [{}]",
Method->getParent()->getNameAsString(), S->getNameAsString());
}
is_method = !is_lambda;
is_method = !is_lambda && !is_static;
methodThisType = Method->getParent()->getTypeForDecl()->getCanonicalTypeUnqualified();
}
for (auto param : params) {