Home
last modified time | relevance | path

Searched refs:bytecode (Results 1 – 25 of 88) sorted by relevance

1234

/llvm-project/mlir/test/Dialect/Builtin/Bytecode/
H A Dattrs.mlir1 // RUN: mlir-opt -emit-bytecode -allow-unregistered-dialect %s | mlir-opt -allow-unregistered-diale…
9 // CHECK: bytecode.array = [unit]
10 bytecode.array = [unit]
19 // CHECK: bytecode.test1 = array<i1: true, false, true, false, false>
20 // CHECK: bytecode.test2 = array<i8: 10, 32, -1>
21 // CHECK: bytecode.test3 = array<f64: 1.{{.*}}e+01, 3.2{{.*}}e+01, 1.809{{.*}}e+03
22 bytecode.test1 = array<i1: true, false, true, false, false>,
23 bytecode.test2 = array<i8: 10, 32, 255>,
24 bytecode.test3 = array<f64: 10.0, 32.0, 1809.0>
32 // CHECK: bytecode.test1 = dense<true> : tensor<256xi1>
[all …]
H A Dtypes.mlir1 // RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s
9 // CHECK: bytecode.test = complex<i32>
10 bytecode.test = complex<i32>
19 // CHECK: bytecode.test = bf16,
20 // CHECK: bytecode.test1 = f16,
21 // CHECK: bytecode.test2 = f32,
22 // CHECK: bytecode.test3 = f64,
23 // CHECK: bytecode.test4 = f80,
24 // CHECK: bytecode.test5 = f128
25 bytecode.test = bf16,
[all …]
/llvm-project/mlir/test/Bytecode/
H A Dgeneral.mlir1 // RUN: mlir-opt -allow-unregistered-dialect -emit-bytecode %s | mlir-opt -allow-unregistered-diale…
3 // CHECK-LABEL: "bytecode.test1"
5 // CHECK-NEXT: "bytecode.empty"() : () -> ()
6 // CHECK-NEXT: "bytecode.attributes"() {attra = 10 : i64, attrb = #bytecode.attr} : () -> ()
7 // CHECK-NEXT{LITERAL}: "bytecode.sparse"() {value = sparse<[[2, 1], [1, 1], [1, 2]], [1.
9 // CHECK-NEXT: "bytecode.operands"(%[[RESULTS:.*]]#0, %[[RESULTS]]#1, %[[RESULTS]]#2) : (i32, …
10 // CHECK-NEXT: %[[RESULTS]]:3 = "bytecode.results"() : () -> (i32, i64, i32)
12 // CHECK-NEXT: "bytecode.branch"()[^[[BLOCK:.*]]] : () -> ()
13 // CHECK-NEXT: ^[[BLOCK]](%[[ARG0:.*]]: i32, %[[ARG1:.*]]: !bytecode.int, %[[ARG2:.*]]: !pdl.opera…
14 // CHECK-NEXT: "bytecode.regions"() ({
[all …]
H A Dresources_elision.mlir1 // RUN: mlir-opt -emit-bytecode -elide-resource-data-from-bytecode %s | mlir-opt | FileCheck %s
5 // CHECK: bytecode.test = dense_resource<decl_resource> : tensor<2xui32>
6 // CHECK: bytecode.test2 = dense_resource<resource> : tensor<4xf64>
7 // CHECK: bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
8 bytecode.test = dense_resource<decl_resource> : tensor<2xui32>,
9 bytecode.test2 = dense_resource<resource> : tensor<4xf64>,
10 bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
H A Dresources.mlir1 // RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s
5 // CHECK: bytecode.test = dense_resource<decl_resource> : tensor<2xui32>
6 // CHECK: bytecode.test2 = dense_resource<resource> : tensor<4xf64>
7 // CHECK: bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
8 bytecode.test = dense_resource<decl_resource> : tensor<2xui32>,
9 bytecode.test2 = dense_resource<resource> : tensor<4xf64>,
10 bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
H A Dbytecode_callback_full_override.mlir1 // RUN: not mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=5" 2>&1 | FileCheck …
3 // CHECK-NOT: failed to read bytecode
13 // CHECK: failed to read bytecode
/llvm-project/mlir/test/Dialect/Quant/Bytecode/
H A Dtypes.mlir1 // RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s
9 // CHECK: bytecode.test = !quant.any<i8<-8:7>:f32>
10 bytecode.test = !quant.any<i8<-8:7>:f32>
15 // CHECK: bytecode.test = !quant.any<i8<-8:7>>
16 bytecode.test = !quant.any<i8<-8:7>>
21 // CHECK: bytecode.test = !quant.any<i8<-8:7>>
22 bytecode.test = !quant.any<i8<-8:7>>
32 bytecode.test = !quant.calibrated<f32<-0.998:1.2321>>
42 bytecode.test = !quant.uniform<i8<-8:7>:f32, 9.987200e-01:127>
52 bytecode.test = !quant.uniform<u8:f32:1, {2.000000e+02:-120,9.987200e-01:127}>
[all …]
/llvm-project/mlir/lib/Bytecode/Writer/
H A DBytecodeWriter.cpp26 #define DEBUG_TYPE "mlir-bytecode-writer"
29 using namespace mlir::bytecode::detail;
40 int64_t bytecodeVersion = bytecode::kVersion;
42 /// A flag specifying whether to elide emission of resources into the bytecode
49 /// The producer of the bytecode.
127 /// This class functions as the underlying encoding emitter for the bytecode
158 /// guaranteed to not die before the end of the bytecode process. in emitOwnedBlob()
169 /// bytecode process. The alignment value is also encoded, making it available in emitOwnedBlobAndAlignment()
197 emitByte(bytecode::kAlignmentByte, "alignment byte");
272 void emitSection(bytecode in emitSection()
[all...]
/llvm-project/mlir/test/Bytecode/versioning/
H A Dversioned_bytecode.mlir7 // RUN: mlir-opt %S/versioned-op-with-prop-1.12.mlirbc -emit-bytecode \
8 // RUN: -emit-bytecode-version=0 | mlir-opt -o %t.1 && \
16 // RUN: not mlir-opt %S/versioned-op-with-prop-1.12.mlirbc -emit-bytecode \
17 // RUN: -emit-bytecode-version=-1 2>&1 | FileCheck %s --check-prefix=ERR_VERSION_NEGATIVE
20 // RUN: not mlir-opt %S/versioned-op-with-prop-1.12.mlirbc -emit-bytecode \
21 // RUN: -emit-bytecode-version=999 2>&1 | FileCheck %s --check-prefix=ERR_VERSION_FUTURE
H A Dversioned_op_with_native_properties.mlir3 // COM: those tests parse bytecode that was generated before test dialect
10 // COM: bytecode contains
22 // COM: bytecode contains
H A Dversioned_op.mlir8 // COM: bytecode contains
20 // COM: bytecode contains
32 // COM: bytecode contains
/llvm-project/mlir/lib/Rewrite/
H A DPatternApplicator.cpp26 if (const PDLByteCode *bytecode = frozenPatternList.getPDLByteCode()) { in PatternApplicator() local
28 bytecode->initializeMutableState(*mutableByteCodeState); in PatternApplicator()
59 if (const PDLByteCode *bytecode = frozenPatternList.getPDLByteCode()) { in applyCostModel() local
60 for (const auto &it : llvm::enumerate(bytecode->getPatterns())) in applyCostModel()
124 if (const PDLByteCode *bytecode = frozenPatternList.getPDLByteCode()) { in walkAllPatterns() local
125 for (const Pattern &it : bytecode->getPatterns()) in walkAllPatterns()
139 const PDLByteCode *bytecode = frozenPatternList.getPDLByteCode(); in matchAndRewrite() local
140 if (bytecode) in matchAndRewrite()
141 bytecode->match(op, rewriter, pdlMatches, *mutableByteCodeState); in matchAndRewrite()
205 bytecode->rewrite(rewriter, *pdlMatch, *mutableByteCodeState); in matchAndRewrite()
/llvm-project/mlir/lib/Bytecode/Reader/
H A DBytecodeReader.cpp34 #define DEBUG_TYPE "mlir-bytecode-reader"
39 static std::string toString(bytecode::Section::ID sectionID) { in toString()
41 case bytecode::Section::kString: in toString()
43 case bytecode::Section::kDialect: in toString()
45 case bytecode::Section::kAttrType: in toString()
47 case bytecode::Section::kAttrTypeOffset: in toString()
49 case bytecode::Section::kIR: in toString()
51 case bytecode::Section::kResource: in toString()
53 case bytecode::Section::kResourceOffset: in toString()
55 case bytecode in toString()
[all...]
/llvm-project/mlir/docs/
H A DBytecodeFormat.md3 This document describes the MLIR bytecode format and its encoding.
6 older bytecode. Similarly, we support back-deployment so that an
10 bytecode format are made assuming immutable dialects: the format
16 to allow managing a version encoded into the bytecode file. The
29 indicate bytecode files:
59 represent a single 64-bit value. The MLIR bytecode utilizes the "PrefixVarInt"
122 Sections are a mechanism for grouping data within the bytecode. They enable
132 Given the generic structure of MLIR, the bytecode encoding is actually fairly
137 The top-level structure of the bytecode contains the 4-byte "magic number", a
139 section is currently only expected to appear once within a bytecode fil
[all...]
/llvm-project/mlir/tools/mlir-parser-fuzzer/bytecode/
H A DCMakeLists.txt5 add_llvm_fuzzer(mlir-bytecode-parser-fuzzer
6 mlir-bytecode-parser-fuzzer.cpp
9 mlir_target_link_libraries(mlir-bytecode-parser-fuzzer
/llvm-project/mlir/include/mlir/IR/
H A DBytecodeBase.td1 //===-- BytecodeBase.td - Base bytecode R/W defs -----------*- tablegen -*-===//
9 // This is the base bytecode reader/writer definition file.
18 // $_reader == dialect bytecode reader
30 // $_writer == dialect bytecode writer
64 // Representation of a bytecode element consisting of other bytecode atoms.
65 // E.g., it is effectively a struct of bytecode elements. Set the members by
129 // - Array elements currently needs a different bytecode type to accommodate
/llvm-project/mlir/include/mlir/Dialect/Tosa/IR/
H A DTosaDialectBytecode.td1 //===-- TosaBytecode.td - Tosa bytecode defs -------------*- tablegen -*-===//
9 // This is the TOSA bytecode reader/writer definition file.
21 /// compatibility with older bytecode.
/llvm-project/mlir/include/mlir/Dialect/Quant/
H A DQuantDialectBytecode.td
H A DCMakeLists.txt
/llvm-project/llvm/docs/HistoricalNotes/
H A D2000-12-06-MeetingSummary.txt4 We met to discuss the LLVM instruction format and bytecode representation:
20 bytecode would have to parse and handle it. This would slow down the
38 1. Including dominator information in the LLVM bytecode
42 in the LLVM bytecode program. Basic blocks could be numbered according
43 to the order of occurrence in the bytecode representation.
66 runtime to skip information that it didn't understand in a bytecode
H A D2001-02-13-Reference-MemoryResponse.txt34 > no way to represent this in either the bytecode or assembly.
35 > B. When parsing assembly/bytecode, we effectively have to do a full
42 how big the bytecode files are before expanding them further. I am pretty
43 keen to explore the implications of LLVM for mobile devices. Both bytecode
/llvm-project/mlir/include/mlir/Bytecode/
H A DBytecodeOpInterface.td9 // This file contains an interface for operation interactions with the bytecode
29 Read the properties for this operation from the bytecode and populate the state.
36 Write the properties for this operation to the bytecode.
/llvm-project/mlir/test/lib/IR/
H A DTestLazyLoading.cpp34 std::string bytecode; in runOnOperation() local
39 llvm::raw_string_ostream os(bytecode); in runOnOperation()
47 llvm::MemoryBufferRef buffer(bytecode, "test-lazy-loading"); in runOnOperation()
/llvm-project/libclc/cmake/modules/
H A DAddLibclc.cmake1 # Compiles an OpenCL C - or assembles an LL file - to bytecode
5 # Target triple for which to compile the bytecode file.
7 # File to compile/assemble to bytecode
26 # pre-process it with clang to a temp file, then assemble that to bytecode.
76 # Links together one or more bytecode files
84 # List of bytecode files to link together
185 # compiles them to LLVM bytecode (or SPIR-V), links them together and optimizes
188 # For bytecode libraries, a list of ALIASES may optionally be provided to
214 # A list of extra bytecode files to link into the builtin library. Symbols
/llvm-project/mlir/test/Bytecode/invalid/
H A Dinvalid-structure.mlir2 // a bytecode file.
9 // VERSION: bytecode version 127 is newer than the current version {{[0-9]+}}
38 // SECTION_LENGTH: attempting to parse a byte at the end of the bytecode

1234