llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
308 stars 84 forks source link

[CIR][CIRGen][LowerToLLVM] Support address space casting #652

Closed seven-mile closed 1 month ago

seven-mile commented 1 month ago
seven-mile commented 1 month ago

Note that other versions of TargetCIRGenInfo::performAddrSpaceCast should include GlobalOp and ConstOp, which are unified as llvm::Constant in LLVM IR. Should track it by another issue.

seven-mile commented 1 month ago

Rebased. Updated except ABI-related nullptr representation.

seven-mile commented 1 month ago

Updated as suggested.