Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ae44c20
[Feature] Implement Hoist Loop-Invariant If Pass
chengyupku Jan 28, 2026
3e5f6fe
Add tilelang semantics guide to programming guides (#1740)
LeiWang1999 Jan 28, 2026
9b9a100
Add CallNodeChecker to Loop Unswitching Pass and integrate tilelang c…
LeiWang1999 Jan 28, 2026
f64be56
lint fix
LeiWang1999 Jan 28, 2026
3cff414
lint fix
LeiWang1999 Jan 28, 2026
f9dfefa
Enhance Loop Unswitching Pass with Let Binding Support
LeiWang1999 Jan 29, 2026
c542090
fix
LeiWang1999 Jan 29, 2026
77d2bc8
lint fix
LeiWang1999 Jan 29, 2026
1f06094
Enhance Loop Unswitching with CallNode Exclusion Check
LeiWang1999 Jan 29, 2026
6ca70ed
Merge branch 'main' of https://github.com/tile-ai/tilelang into cheng…
LeiWang1999 Jan 29, 2026
56f3201
Update TVM subproject to latest commit and remove debug print stateme…
LeiWang1999 Jan 29, 2026
117e6d4
Add support for disabling loop unswitching optimization
LeiWang1999 Jan 31, 2026
5e0ca63
Merge branch 'main' of https://github.com/tile-ai/tilelang
LeiWang1999 May 8, 2026
512c995
update tvm
LeiWang1999 May 13, 2026
5917853
Refactor: Update TileLang to use tirx instead of tir
LeiWang1999 May 13, 2026
3cb4d45
pass fix
LeiWang1999 May 17, 2026
8d962c1
Update submodule 'tvm' to latest commit f24c7b19
LeiWang1999 May 18, 2026
8ee736f
Apply formatting fixes
LeiWang1999 May 18, 2026
468c17c
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 18, 2026
f13add9
Update CMakeLists.txt to set HIDE_PRIVATE_SYMBOLS for TileLang and mo…
LeiWang1999 May 18, 2026
2be9ca2
Refactor CMakeLists.txt and kernel_cache.py to update target names an…
LeiWang1999 May 18, 2026
008d88c
Update repair-wheel-command in pyproject.toml to exclude libz3.so wit…
LeiWang1999 May 18, 2026
3869d1d
Fix macOS Z3 dylib lookup
LeiWang1999 May 18, 2026
f4274ab
Move macOS Z3 install-name fix to install step
LeiWang1999 May 18, 2026
0c11d0b
Update TVM submodule for runtime import fix
LeiWang1999 May 18, 2026
0b0674d
Update ROCm backend for TVM module factory changes
LeiWang1999 May 18, 2026
32e5ef2
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 18, 2026
c9346d7
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 18, 2026
fe39b74
Fix build-tree Z3 runtime lookup
LeiWang1999 May 18, 2026
0311110
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 18, 2026
1919c13
Fix macOS build-tree Z3 lookup
LeiWang1999 May 18, 2026
130260c
Support legacy target option strings
LeiWang1999 May 18, 2026
458475f
Normalize CUDA target in transform test
LeiWang1999 May 18, 2026
1ee3e74
Qualify Metal stream FFI lookup
LeiWang1999 May 18, 2026
a49e62b
Fix PyPI Z3 packaging links
LeiWang1999 May 18, 2026
acc01a3
Update TVM for Windows DLL lookup
LeiWang1999 May 18, 2026
58cf4ca
Register Windows dependency DLL directories
LeiWang1999 May 18, 2026
e894033
Bump tvm-ffi to match tirx
oraluben May 18, 2026
e3f8593
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 19, 2026
6ab406b
tvm update
LeiWang1999 May 19, 2026
9baf1dc
Merge remote-tracking branch 'lei/refactor/tirx-tvm-update' into refa…
LeiWang1999 May 19, 2026
828abdb
Apply lint fixes
LeiWang1999 May 19, 2026
9078f39
Enhance reduction operations with support for nan propagation and vec…
LeiWang1999 May 19, 2026
913726e
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 19, 2026
1620cb6
Refactor ReduceLowerer: Remove unnecessary buffer allocation logic fo…
LeiWang1999 May 19, 2026
98d391a
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 20, 2026
3805846
Normalize PyPI Z3 dylib before linking
LeiWang1999 May 20, 2026
02b259a
Drop legacy target option string support
LeiWang1999 May 20, 2026
4c804bc
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 20, 2026
377aa10
Merge branch 'main' of https://github.com/tile-ai/tilelang into refac…
LeiWang1999 May 20, 2026
7b2bae0
Fix type reference for barrier annotations in CUDA copy operations. U…
LeiWang1999 May 20, 2026
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
Move macOS Z3 install-name fix to install step
  • Loading branch information
LeiWang1999 committed May 18, 2026
commit f4274ab127ae0877496afb612b8a68254fe7c615
46 changes: 29 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -602,23 +602,6 @@ if(DEFINED TILELANG_ACTIVE_BACKEND_STUB_LINK)
endforeach()
endif()

if(APPLE AND USE_Z3 AND USE_PYPI_Z3)
# PyPI z3-solver's macOS dylib uses the bare install name
# "libz3.dylib". dyld does not resolve bare install names through LC_RPATH,
# so rewrite TVM's load command to @rpath and let the z3 package rpath below
# locate the dependency inside site-packages/z3/{lib,bin}.
foreach(target IN ITEMS tvm_compiler tvm)
if(TARGET ${target})
add_custom_command(TARGET ${target} POST_BUILD
COMMAND /bin/sh -c
"if otool -L \"$1\" | grep -q '^[[:space:]]*libz3\\.dylib '; then \"$2\" -change libz3.dylib @rpath/libz3.dylib \"$1\"; fi"
_ "$<TARGET_FILE:${target}>" "${CMAKE_INSTALL_NAME_TOOL}"
VERBATIM
)
endif()
endforeach()
endif()

# Append stub targets after the linking loop so they don't link to themselves
if(DEFINED TILELANG_ACTIVE_BACKEND_STUB_TARGETS)
list(APPEND TILELANG_OUTPUT_TARGETS ${TILELANG_ACTIVE_BACKEND_STUB_TARGETS})
Expand Down Expand Up @@ -684,3 +667,32 @@ install(
RUNTIME DESTINATION tilelang/lib
ARCHIVE DESTINATION tilelang/lib
)

if(APPLE AND USE_Z3 AND USE_PYPI_Z3)
# PyPI z3-solver's macOS dylib uses the bare install name
# "libz3.dylib". dyld does not resolve bare install names through LC_RPATH,
# so rewrite TVM's installed load command to @rpath and let the z3 package
# rpath above locate the dependency inside site-packages/z3/{lib,bin}.
install(CODE [[
set(_tilelang_lib_dir "${CMAKE_INSTALL_PREFIX}/tilelang/lib")
foreach(_dylib IN ITEMS libtvm_compiler.dylib libtvm.dylib)
set(_path "${_tilelang_lib_dir}/${_dylib}")
if(EXISTS "${_path}")
execute_process(
COMMAND otool -L "${_path}"
OUTPUT_VARIABLE _otool_output
RESULT_VARIABLE _otool_result
)
if(_otool_result EQUAL 0 AND _otool_output MATCHES "\n[ \t]*libz3\\.dylib \\(")
execute_process(
COMMAND /usr/bin/install_name_tool -change libz3.dylib @rpath/libz3.dylib "${_path}"
RESULT_VARIABLE _install_name_tool_result
)
if(NOT _install_name_tool_result EQUAL 0)
message(FATAL_ERROR "Failed to rewrite libz3.dylib install name in ${_path}")
endif()
endif()
endif()
endforeach()
]])
endif()
Loading