[clang] [CIR] Support load/store for Vector of bools (PR #212146)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 2 12:10:01 PDT 2026


================
@@ -709,7 +707,24 @@ mlir::Value CIRGenFunction::emitToMemory(mlir::Value value, QualType ty) {
     ty = atomicTy->getValueType();
 
   if (ty->isExtVectorBoolType()) {
----------------
AmrDeveloper wrote:

> I'm not sure this is the representation we want. Why wouldn't we want to represent a vector of bools as !cir.vector<8 x !cir.bool>? We would need to lower this to an integer representation later

I think that makes sense, not sure if that can enable more folding. I will change it

Thanks

https://github.com/llvm/llvm-project/pull/212146


More information about the cfe-commits mailing list