llvm-capstone/mlir/unittests
Mogball 2b5134f1b7 [mlir] Fix bytecode reading of resource sections
This partially reverts #66380. The assertion that the underlying buffer
of an EncodingReader is aligned to any required alignments for resource
sections. Resources know their own alignment and pad their buffers
accordingly, but the bytecode reader doesn't know that ahead of time.
Consequently, it cannot give the resource EncodingReader a base buffer
aligned to the maximum required alignment.

A simple example from the test fails without this:

```mlir
module @TestDialectResources attributes {
  bytecode.test = dense_resource<resource> : tensor<4xi32>
} {}
{-#
  dialect_resources: {
    builtin: {
      resource: "0x2000000001000000020000000300000004000000",
      resource_2: "0x2000000001000000020000000300000004000000"
    }
  }
```
2023-09-29 18:39:56 -07:00
..
Analysis [MLIR][Presburger] Fix bug in PresburgerSpace::convertVarKind (#67267) 2023-09-25 12:55:58 +05:30
Bytecode [mlir] Fix bytecode reading of resource sections 2023-09-29 18:39:56 -07:00
Conversion [mlir][arith] Change dialect name from Arithmetic to Arith 2022-09-29 11:23:28 -04:00
Debug Introduce MLIR Op Properties 2023-05-01 23:16:34 -07:00
Dialect [mlir][index] Implement folders for CastSOp and CastUOp (#66960) 2023-09-21 11:53:43 -07:00
ExecutionEngine [mlir][CRunnerUtils] Fix iterators accessing MemRefs with non-zero offset 2023-09-14 13:14:13 +02:00
Interfaces Reland "[mlir] Use a type for representing branch points in RegionBranchOpInterface" 2023-08-30 09:31:54 +02:00
IR Simplify diagnostic error management for MLIR properties API (NFC) (#67409) 2023-09-26 11:44:37 -07:00
Parser [mlir][Parser] Make parse{Attribute,Type} null-terminate input 2023-03-03 17:03:27 -05:00
Pass Update some uses of getAttr() to be explicit about Inherent vs Discardable (NFC) 2023-09-12 01:33:47 -07:00
Rewrite Fix memory leaks in MLIR unit-tests (NFC) 2021-10-02 21:31:46 +00:00
Support [mlir][docgen] Handle Windows line endings in doc generation. 2023-06-29 09:56:49 -07:00
TableGen [mlir] Fix duplicate word typos; NFC 2023-09-01 20:53:08 -07:00
Target [mlir][gpu][NVPTX] Enable NVIDIA GPU JIT compilation path (#66220) 2023-09-14 18:00:27 -04:00
Transforms Introduce MLIR Op Properties 2023-05-01 23:16:34 -07:00
CMakeLists.txt [mlir][Target][LLVM] Adds an utility class for serializing operations to binary strings. 2023-08-08 14:48:11 +00:00