Skip to content

Support for LLVM 18 #8773

@zml72062

Description

@zml72062

Hello, I'm trying to build taichi from source with a pre-installed LLVM 18.1.8 on my machine. In this new version of LLVM, the header file llvm/Transforms/IPO/PassManagerBuilder.h no longer exists (which is required by JIT optimization and codegen utilities of taichi); also, typed pointer types are not supported (with the removal of functions like llvm::Type::getInt8PtrTy()). Happy to see if the new version of LLVM can be supported!

Solution
Rewrite calls to LLVM C++ API (in codegen and runtime directories) to adapt to the new version of LLVM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestSuggest an idea on this project

    Type

    No type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions