llvm / clangir

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

[ClangIR][CIRGenFunction] implement buildToMemory #657

Open orion160 opened 1 month ago

orion160 commented 1 month ago

For the moment buildToMemory is a no-op

mlir::Value CIRGenFunction::buildToMemory(mlir::Value Value, QualType Ty) {
  // Bool has a different representation in memory than in registers.
  return Value;
}
Lancern commented 1 month ago

CIR does not yet properly handle the bool type. See #480 .