cl/instr:note for why asm not support pointer type:

This commit is contained in:
luoliwoshang
2025-08-22 16:14:51 +08:00
parent 49b9b92790
commit f3de14da4b

View File

@@ -139,7 +139,8 @@ func (p *context) asm(b llssa.Builder, args []ssa.Value) (ret llssa.Expr) {
inputValues = append(inputValues, value) inputValues = append(inputValues, value)
constraints = append(constraints, "r") constraints = append(constraints, "r")
} else { } else {
// Pointer operands support was dropped, following TinyGo 0.23 // Pointer operands support was dropped, following TinyGo
// NOTE(tinygo): Memory references require a type starting with LLVM 14, probably as a preparation for opaque pointers.
panic(fmt.Sprintf("asm: unsupported type in inline assembly for operand: %s, only integer types are supported", name)) panic(fmt.Sprintf("asm: unsupported type in inline assembly for operand: %s, only integer types are supported", name))
} }
} }