[all-commits] [llvm/llvm-project] 6fb1d4: [mlir][spirv] Update example of `spirv.Constant`(N...

Longsheng Mou via All-commits all-commits at lists.llvm.org
Thu Feb 13 03:57:20 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6fb1d40992ac3aff84dfe7616ea7776e1c26ba99
      https://github.com/llvm/llvm-project/commit/6fb1d40992ac3aff84dfe7616ea7776e1c26ba99
  Author: Longsheng Mou <longshengmou at gmail.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td

  Log Message:
  -----------
  [mlir][spirv] Update example of `spirv.Constant`(NFC) (#127030)

Actually the `spirv.Constant dense<[2, 3]> : vector<2xf32>` will cause a
error:
```
error: unexpected decimal integer literal for a floating point value
    %cst = spirv.Constant dense<[2, 3]> : vector<2xf32>
                                 ^
```
The value should be an explicit float.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list