Skip to content

Commit

Permalink
use mlir_jl_tablegen_jll
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jan 16, 2024
1 parent f10f4b8 commit f503c09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bindings/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ for (julia_version, llvm_version) in julia_llvm
platform["llvm_version"] = string(llvm_version.major)
platform["julia_version"] = string(julia_version)

# NOTE LLVM version is implicitly resolved by compatibility with the Julia version
dependencies = PkgSpec[PkgSpec(; name="LLVM_full_jll")]
dependencies = PkgSpec[
PkgSpec(; name="LLVM_full_jll", version=llvm_version),
PkgSpec(; name="mlir_jl_tblgen_jll")
]

artifact_paths = setup_dependencies(prefix, dependencies, platform; verbose=true)

mlir_jl_tblgen = joinpath(destdir(prefix, platform), "bin", "mlir-jl-tblgen")
include_dir = joinpath(destdir(prefix, platform), "include")

# generate MLIR API bindings
Expand Down Expand Up @@ -143,7 +146,7 @@ for (julia_version, llvm_version) in julia_llvm
"-I", include_dir,
"-o", joinpath(@__DIR__, "..", "src", "Dialects", string(llvm_version.major), binding),
]
run(`./mlir-jl-tblgen $flags`) # TODO replace for artifact
run(`$mlir_jl_tblgen $flags`)
println("- Generated \"$binding\" from \"$td\"")
end
end
Expand Down

0 comments on commit f503c09

Please sign in to comment.