From d0f1d99581305b23f02d992869ab6d534e49a529 Mon Sep 17 00:00:00 2001 From: Nandor Licker Date: Mon, 28 Mar 2022 18:58:23 +0300 Subject: [PATCH] [NFC] Added newlines to the end of files --- .clang-format | 2 +- docs/includes/img/dialectlegend.svg | 2 +- docs/includes/img/dialects.png | Bin 120810 -> 120811 bytes docs/includes/img/firrtl-folded-module.png | Bin 6978 -> 6979 bytes docs/includes/img/firrtl-unfolded-module.png | Bin 18189 -> 18190 bytes include/circt/Dialect/FIRRTL/CHIRRTLDialect.h | 2 +- .../circt/Dialect/FIRRTL/CHIRRTLVisitors.h | 2 +- include/circt/Dialect/FIRRTL/CMakeLists.txt | 2 +- include/circt/Dialect/FIRRTL/FIRRTLUtils.h | 2 +- .../ExportVerilog/RearrangableOStream.cpp | 2 +- lib/Dialect/Comb/CombAnalysis.cpp | 2 +- lib/Dialect/LLHD/CMakeLists.txt | 2 +- .../ExportVerilog/hw-typedecls.mlir | 2 +- .../HandshakeToFIRRTL/test_select.mlir | 2 +- .../HandshakeToHW/test_simple_loop.mlir | 2 +- .../StandardToHandshake/errors.mlir | 2 +- test/Dialect/FIRRTL/dedup-errors.mlir | 2 +- test/Dialect/FIRRTL/dedup-locations.mlir | 2 +- test/Dialect/FIRRTL/expand-whens-errors.mlir | 2 +- .../FIRRTL/expand-whens-locations.mlir | 2 +- .../Dialect/FIRRTL/imconstprop-aggregate.mlir | 2 +- .../Dialect/FIRRTL/lower-types-aggregate.mlir | 2 +- test/Dialect/FIRRTL/parse-basic.fir | 2 +- test/Dialect/FIRRTL/remove-unused-ports.mlir | 2 +- test/Dialect/Handshake/remove_buffers.mlir | 2 +- test/circt-reduce/memory-stubber.mlir | 2 +- test/firtool/firtool.fir | 2 +- test/firtool/optimizations.mlir | 2 +- test/lib/Analysis/CMakeLists.txt | 1 + 29 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.clang-format b/.clang-format index 392e201895..a74fda4b67 100644 --- a/.clang-format +++ b/.clang-format @@ -1,2 +1,2 @@ BasedOnStyle: LLVM -AlwaysBreakTemplateDeclarations: Yes \ No newline at end of file +AlwaysBreakTemplateDeclarations: Yes diff --git a/docs/includes/img/dialectlegend.svg b/docs/includes/img/dialectlegend.svg index da4f00e04a..48c30f0d72 100644 --- a/docs/includes/img/dialectlegend.svg +++ b/docs/includes/img/dialectlegend.svg @@ -1,4 +1,4 @@ -
CIRCT dialect
CIRCT dialect
File
File
Upstream dialect
Upstream dialect
CIRCT tool/lib
CIRCT tool/lib
External tool
External tool
Proposed/Hypothetical
Proposed/Hypothetical
Stable
Stable
Viewer does not support full SVG 1.1
\ No newline at end of file +
CIRCT dialect
CIRCT dialect
File
File
Upstream dialect
Upstream dialect
CIRCT tool/lib
CIRCT tool/lib
External tool
External tool
Proposed/Hypothetical
Proposed/Hypothetical
Stable
Stable
Viewer does not support full SVG 1.1
diff --git a/docs/includes/img/dialects.png b/docs/includes/img/dialects.png index 1b8a00d77455f4be287cb912409e92ad35a69796..6850a918f2b090276013bf5f218eface55390d99 100644 GIT binary patch delta 13 VcmaF0p8fTD_J%EtudXw40RS=c215V< delta 11 TcmaF8p8eH&_J%EtudV|CC3*%p diff --git a/docs/includes/img/firrtl-folded-module.png b/docs/includes/img/firrtl-folded-module.png index a145a832cf30ccd1a7e04a8dc7f50763c5859780..1e7a68d6f7d93968642679ac613ffbb5ef32fc40 100644 GIT binary patch delta 9 QcmX?PcGzr#lQbh202BEG3IG5A delta 7 OcmX?XcF1gllQaMg@dEz< diff --git a/docs/includes/img/firrtl-unfolded-module.png b/docs/includes/img/firrtl-unfolded-module.png index 71b5a028e4b4fa8cd94f553167263e5d569ed79a..a76ec0c5b3200c8b406db212ad8812fd2d302f8f 100644 GIT binary patch delta 11 ScmeC}W9;i=+`#M3$OQlxi~~sk delta 9 QcmeC{W9;o?+`#J&01^iSJ^%m! diff --git a/include/circt/Dialect/FIRRTL/CHIRRTLDialect.h b/include/circt/Dialect/FIRRTL/CHIRRTLDialect.h index 2534e70a7b..f4a5e1061a 100644 --- a/include/circt/Dialect/FIRRTL/CHIRRTLDialect.h +++ b/include/circt/Dialect/FIRRTL/CHIRRTLDialect.h @@ -33,4 +33,4 @@ #define GET_OP_CLASSES #include "circt/Dialect/FIRRTL/CHIRRTL.h.inc" -#endif // CIRCT_DIALECT_FIRRTL_CHIRRTLDIALECT_H \ No newline at end of file +#endif // CIRCT_DIALECT_FIRRTL_CHIRRTLDIALECT_H diff --git a/include/circt/Dialect/FIRRTL/CHIRRTLVisitors.h b/include/circt/Dialect/FIRRTL/CHIRRTLVisitors.h index ae08fdcd7b..7ab000c807 100644 --- a/include/circt/Dialect/FIRRTL/CHIRRTLVisitors.h +++ b/include/circt/Dialect/FIRRTL/CHIRRTLVisitors.h @@ -65,4 +65,4 @@ public: } // namespace chirrtl } // namespace circt -#endif // CIRCT_DIALECT_FIRRTL_CHIRRTLVISITORS_H \ No newline at end of file +#endif // CIRCT_DIALECT_FIRRTL_CHIRRTLVISITORS_H diff --git a/include/circt/Dialect/FIRRTL/CMakeLists.txt b/include/circt/Dialect/FIRRTL/CMakeLists.txt index 41ac41b24b..69ed507a21 100644 --- a/include/circt/Dialect/FIRRTL/CMakeLists.txt +++ b/include/circt/Dialect/FIRRTL/CMakeLists.txt @@ -27,4 +27,4 @@ add_dependencies(circt-headers CIRCTFIRRTLOpInterfacesIncGen) # CHIRRTL add_circt_dialect(CHIRRTL chirrtl CHIRRTL) -add_circt_doc(CHIRRTL -gen-dialect-doc CHIRRTL Dialects/) \ No newline at end of file +add_circt_doc(CHIRRTL -gen-dialect-doc CHIRRTL Dialects/) diff --git a/include/circt/Dialect/FIRRTL/FIRRTLUtils.h b/include/circt/Dialect/FIRRTL/FIRRTLUtils.h index aca0dd26f5..a900b17517 100644 --- a/include/circt/Dialect/FIRRTL/FIRRTLUtils.h +++ b/include/circt/Dialect/FIRRTL/FIRRTLUtils.h @@ -24,4 +24,4 @@ void emitConnect(ImplicitLocOpBuilder &builder, Value lhs, Value rhs); } // namespace firrtl } // namespace circt -#endif // CIRCT_DIALECT_FIRRTL_FIRRTLUTILS_H \ No newline at end of file +#endif // CIRCT_DIALECT_FIRRTL_FIRRTLUTILS_H diff --git a/lib/Conversion/ExportVerilog/RearrangableOStream.cpp b/lib/Conversion/ExportVerilog/RearrangableOStream.cpp index 284a1f7b98..149fd79948 100644 --- a/lib/Conversion/ExportVerilog/RearrangableOStream.cpp +++ b/lib/Conversion/ExportVerilog/RearrangableOStream.cpp @@ -185,4 +185,4 @@ void RearrangableOStream::write_impl(const char *ptr, size_t size) { memcpy(remainingChunkPtr, ptr, size); remainingChunkPtr += size; remainingChunkSize -= size; -} \ No newline at end of file +} diff --git a/lib/Dialect/Comb/CombAnalysis.cpp b/lib/Dialect/Comb/CombAnalysis.cpp index 9c29ac38ff..408a294769 100644 --- a/lib/Dialect/Comb/CombAnalysis.cpp +++ b/lib/Dialect/Comb/CombAnalysis.cpp @@ -86,4 +86,4 @@ static KnownBits computeKnownBits(Value v, unsigned depth) { /// constant" always returns zeros for the zero bits in a constant. KnownBits comb::computeKnownBits(Value value) { return ::computeKnownBits(value, 0); -} \ No newline at end of file +} diff --git a/lib/Dialect/LLHD/CMakeLists.txt b/lib/Dialect/LLHD/CMakeLists.txt index dc1b1258ff..ca92aed9ed 100644 --- a/lib/Dialect/LLHD/CMakeLists.txt +++ b/lib/Dialect/LLHD/CMakeLists.txt @@ -1,3 +1,3 @@ add_subdirectory(IR) add_subdirectory(Simulator) -add_subdirectory(Transforms) \ No newline at end of file +add_subdirectory(Transforms) diff --git a/test/Conversion/ExportVerilog/hw-typedecls.mlir b/test/Conversion/ExportVerilog/hw-typedecls.mlir index fd668a0f17..3b4a09d9d9 100644 --- a/test/Conversion/ExportVerilog/hw-typedecls.mlir +++ b/test/Conversion/ExportVerilog/hw-typedecls.mlir @@ -86,4 +86,4 @@ hw.module @testAggregateInout(%i: i1) -> (out1: i8, out2: i1) { %2 = sv.read_inout %0 : !hw.inout %3 = sv.read_inout %1 : !hw.inout hw.output %2, %3 : i8, i1 -} \ No newline at end of file +} diff --git a/test/Conversion/HandshakeToFIRRTL/test_select.mlir b/test/Conversion/HandshakeToFIRRTL/test_select.mlir index 2ddb2abd02..50939c8384 100644 --- a/test/Conversion/HandshakeToFIRRTL/test_select.mlir +++ b/test/Conversion/HandshakeToFIRRTL/test_select.mlir @@ -40,4 +40,4 @@ handshake.func @test_select(%arg0: i1, %arg1: i32, %arg2: i32, %arg3: none, ...) -> (i32, none) { %0 = select %arg0, %arg1, %arg2 : i32 return %0, %arg3 : i32, none -} \ No newline at end of file +} diff --git a/test/Conversion/HandshakeToHW/test_simple_loop.mlir b/test/Conversion/HandshakeToHW/test_simple_loop.mlir index 25122c5a90..dafde471b0 100644 --- a/test/Conversion/HandshakeToHW/test_simple_loop.mlir +++ b/test/Conversion/HandshakeToHW/test_simple_loop.mlir @@ -70,4 +70,4 @@ handshake.func @main(%arg0: none, ...) -> (i64, none) attributes {argNames = ["i %14:2 = fork [2] %trueResult_0 : i64 %15 = arith.addi %trueResult_4, %14#1 : i64 return %falseResult_5, %falseResult_3 : i64, none -} \ No newline at end of file +} diff --git a/test/Conversion/StandardToHandshake/errors.mlir b/test/Conversion/StandardToHandshake/errors.mlir index 41544bcbea..95ef11deaf 100644 --- a/test/Conversion/StandardToHandshake/errors.mlir +++ b/test/Conversion/StandardToHandshake/errors.mlir @@ -43,4 +43,4 @@ func @non_canon_loop(%arg0 : memref<100xi32>, %arg1 : i32) -> i32 { cf.br ^bb1(%3 : index) ^bb3: // pred: ^bb1 return %c0_i32 : i32 -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/dedup-errors.mlir b/test/Dialect/FIRRTL/dedup-errors.mlir index ef104b0af5..1671ed4ba7 100644 --- a/test/Dialect/FIRRTL/dedup-errors.mlir +++ b/test/Dialect/FIRRTL/dedup-errors.mlir @@ -30,4 +30,4 @@ firrtl.circuit "MustDedup" attributes {annotations = [{ firrtl.instance test0 @Test0(in i : !firrtl.uint<1>) firrtl.instance test1 @Test1(in i : !firrtl.uint<8>) } -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/dedup-locations.mlir b/test/Dialect/FIRRTL/dedup-locations.mlir index d30c5efbe3..64b63c59a9 100644 --- a/test/Dialect/FIRRTL/dedup-locations.mlir +++ b/test/Dialect/FIRRTL/dedup-locations.mlir @@ -15,4 +15,4 @@ firrtl.module @Test() { firrtl.instance dedup0 @Dedup0() firrtl.instance dedup1 @Dedup1() } -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/expand-whens-errors.mlir b/test/Dialect/FIRRTL/expand-whens-errors.mlir index 6e03f90727..cd50d3c694 100644 --- a/test/Dialect/FIRRTL/expand-whens-errors.mlir +++ b/test/Dialect/FIRRTL/expand-whens-errors.mlir @@ -128,4 +128,4 @@ firrtl.circuit "CheckInitialization" { firrtl.module @CheckInitialization(in %p : !firrtl.uint<1>, out %out: !firrtl.vector, b:uint<1>>, 1>) { // expected-error @-1 {{sink "out[0].a" not fully initialized}} } -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/expand-whens-locations.mlir b/test/Dialect/FIRRTL/expand-whens-locations.mlir index bd409924f9..7897509976 100644 --- a/test/Dialect/FIRRTL/expand-whens-locations.mlir +++ b/test/Dialect/FIRRTL/expand-whens-locations.mlir @@ -47,4 +47,4 @@ firrtl.module @Nested(in %p: !firrtl.uint<1>, in %v0: !firrtl.uint<8>, in %v1: ! // CHECK: firrtl.connect %out, [[OUTSIDE]] // CHECK-SAME: loc("outside") } -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/imconstprop-aggregate.mlir b/test/Dialect/FIRRTL/imconstprop-aggregate.mlir index d039b47de6..6bad17ea76 100644 --- a/test/Dialect/FIRRTL/imconstprop-aggregate.mlir +++ b/test/Dialect/FIRRTL/imconstprop-aggregate.mlir @@ -390,4 +390,4 @@ firrtl.circuit "dntOutput" { %0 = firrtl.subfield %b(0) : (!firrtl.bundle>) -> !firrtl.uint<3> firrtl.strictconnect %0, %c1_ui3 : !firrtl.uint<3> } -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/lower-types-aggregate.mlir b/test/Dialect/FIRRTL/lower-types-aggregate.mlir index db27793805..7236c68651 100644 --- a/test/Dialect/FIRRTL/lower-types-aggregate.mlir +++ b/test/Dialect/FIRRTL/lower-types-aggregate.mlir @@ -10,4 +10,4 @@ firrtl.circuit "TopLevel" { firrtl.module @TopLevel(in %source: !firrtl.bundle>, out %sink: !firrtl.bundle>) { } -} \ No newline at end of file +} diff --git a/test/Dialect/FIRRTL/parse-basic.fir b/test/Dialect/FIRRTL/parse-basic.fir index c3fdafe4b1..2f6e6b151f 100644 --- a/test/Dialect/FIRRTL/parse-basic.fir +++ b/test/Dialect/FIRRTL/parse-basic.fir @@ -1083,4 +1083,4 @@ circuit MyModule : ; CHECK: firrtl.circuit "MyModule" { ; CHECK: !chirrtl.cmemory, 16>, 34359738368> smem testharness : UInt<8>[16] [34359738368] node w_addr = UInt<36>(42) @[Cat.scala 31:58] - write mport MPORT = testharness[w_addr], clock \ No newline at end of file + write mport MPORT = testharness[w_addr], clock diff --git a/test/Dialect/FIRRTL/remove-unused-ports.mlir b/test/Dialect/FIRRTL/remove-unused-ports.mlir index ede938f461..0cacbef9e7 100644 --- a/test/Dialect/FIRRTL/remove-unused-ports.mlir +++ b/test/Dialect/FIRRTL/remove-unused-ports.mlir @@ -136,4 +136,4 @@ firrtl.circuit "Top" { firrtl.strictconnect %A_b, %b : !firrtl.uint<1> firrtl.strictconnect %c, %A_c : !firrtl.uint<1> } -} \ No newline at end of file +} diff --git a/test/Dialect/Handshake/remove_buffers.mlir b/test/Dialect/Handshake/remove_buffers.mlir index 0aaa2ca624..287de0495f 100644 --- a/test/Dialect/Handshake/remove_buffers.mlir +++ b/test/Dialect/Handshake/remove_buffers.mlir @@ -12,4 +12,4 @@ handshake.func @simple_c(%arg0: i32, %arg1: i32, %arg2: none) -> (i32, none) { %3 = buffer [2] seq %2 : i32 %4 = buffer [2] seq %arg2 : none return %3, %4 : i32, none -} \ No newline at end of file +} diff --git a/test/circt-reduce/memory-stubber.mlir b/test/circt-reduce/memory-stubber.mlir index d1d6699fc2..c76c3929bb 100644 --- a/test/circt-reduce/memory-stubber.mlir +++ b/test/circt-reduce/memory-stubber.mlir @@ -19,4 +19,4 @@ firrtl.circuit "Basic" { // CHECK: [[SINT:%.+]] = firrtl.asSInt {{%.+}} // CHECK: firrtl.connect {{%.+}}, [[SINT]] } -} \ No newline at end of file +} diff --git a/test/firtool/firtool.fir b/test/firtool/firtool.fir index b34cddd01d..4cbaf77587 100644 --- a/test/firtool/firtool.fir +++ b/test/firtool/firtool.fir @@ -255,4 +255,4 @@ circuit test_mod : %[[{"a": "a"}]] input in : UInt<1> output out : UInt<1> out is invalid -; VERILOG-LABEL: module UnusedPortsMod(); \ No newline at end of file +; VERILOG-LABEL: module UnusedPortsMod(); diff --git a/test/firtool/optimizations.mlir b/test/firtool/optimizations.mlir index b9c976354b..31516aeae0 100644 --- a/test/firtool/optimizations.mlir +++ b/test/firtool/optimizations.mlir @@ -18,4 +18,4 @@ hw.module @Issue2393(%clock: i1, %c: i1, %data: i2) { // CHECK-NEXT: r2 <= data; // CHECK-NEXT: end // CHECK-NEXT: end -} \ No newline at end of file +} diff --git a/test/lib/Analysis/CMakeLists.txt b/test/lib/Analysis/CMakeLists.txt index e69de29bb2..8b13789179 100644 --- a/test/lib/Analysis/CMakeLists.txt +++ b/test/lib/Analysis/CMakeLists.txt @@ -0,0 +1 @@ +