Skip to content

Commit 37f9596

Browse files
committed
Bump CIRCT
1 parent 4423b47 commit 37f9596

File tree

6 files changed

+18
-21
lines changed

6 files changed

+18
-21
lines changed

circt

Submodule circt updated 1670 files

src/circt-sys/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,16 @@ fn main() {
8383
"CIRCTMoore",
8484
"CIRCTSV",
8585
"CIRCTSeq",
86+
"CIRCTSupport",
8687
"LLVMBinaryFormat",
8788
"LLVMBitstreamReader",
8889
"LLVMCore",
90+
"LLVMDemangle",
8991
"LLVMRemarks",
9092
"LLVMSupport",
9193
"MLIRAnalysis",
92-
"MLIRArithmeticDialect",
94+
"MLIRArithDialect",
95+
"MLIRArithValueBoundsOpInterfaceImpl",
9396
"MLIRCAPIFunc",
9497
"MLIRCAPIIR",
9598
"MLIRCAPIControlFlow",
@@ -99,6 +102,7 @@ fn main() {
99102
"MLIRFuncDialect",
100103
"MLIRIR",
101104
"MLIRInferTypeOpInterface",
105+
"MLIRInferIntRangeCommon",
102106
"MLIRInferIntRangeInterface",
103107
"MLIRPDLToPDLInterp",
104108
"MLIRParser",

src/circt-sys/wrapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "mlir-c/IR.h"
2626
#include "mlir-c/IntegerSet.h"
2727
#include "mlir-c/Pass.h"
28-
#include "mlir-c/Registration.h"
2928
#include "mlir-c/Support.h"
3029
#include "mlir-c/Transforms.h"
3130

src/circt/src/cf.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ impl CondBranchOp {
3030
state.add_operand(condition);
3131
state.add_successor(true_dest);
3232
state.add_successor(false_dest);
33-
let vector_ty = unsafe {
34-
mlirVectorTypeGet(1, [3].as_ptr(), get_integer_type(builder.cx, 32).raw())
35-
};
36-
let vector_attr = Attribute::from_raw(unsafe {
37-
mlirDenseElementsAttrInt32Get(vector_ty, 3, [1, 0, 0].as_ptr())
33+
let dense_array_attr = Attribute::from_raw(unsafe {
34+
mlirDenseI32ArrayGet(builder.cx.raw(), 3, [1, 0, 0].as_ptr())
3835
});
39-
state.add_attribute("operand_segment_sizes", vector_attr);
36+
state.add_attribute("operand_segment_sizes", dense_array_attr);
4037
})
4138
}
4239
}

src/circt/src/llhd.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ impl InstanceOp {
229229
builder.build_with(|builder, state| {
230230
let num_inputs = inputs.into_iter().map(|v| state.add_operand(v)).count();
231231
let num_outputs = outputs.into_iter().map(|v| state.add_operand(v)).count();
232-
let vector_attr = Attribute::from_raw(unsafe {
233-
mlirDenseElementsAttrInt32Get(
234-
mlirVectorTypeGet(1, [2].as_ptr(), get_integer_type(builder.cx, 32).raw()),
232+
let dense_array_attr = Attribute::from_raw(unsafe {
233+
mlirDenseI32ArrayGet(
234+
builder.cx.raw(),
235235
2,
236236
[num_inputs as _, num_outputs as _].as_ptr(),
237237
)
238238
});
239-
state.add_attribute("operand_segment_sizes", vector_attr);
239+
state.add_attribute("operand_segment_sizes", dense_array_attr);
240240
state.add_attribute("name", get_string_attr(builder.cx, name));
241241
state.add_attribute("callee", get_flat_symbol_ref_attr(builder.cx, module));
242242
})
@@ -383,17 +383,14 @@ impl WaitOp {
383383
if let Some(time) = time {
384384
state.add_operand(time);
385385
}
386-
let vector_ty = unsafe {
387-
mlirVectorTypeGet(1, [3].as_ptr(), get_integer_type(builder.cx, 32).raw())
388-
};
389-
let vector_attr = Attribute::from_raw(unsafe {
390-
mlirDenseElementsAttrInt32Get(
391-
vector_ty,
386+
let dense_array_attr = Attribute::from_raw(unsafe {
387+
mlirDenseI32ArrayGet(
388+
builder.cx.raw(),
392389
3,
393390
[observed.len() as _, time.is_some() as _, 0].as_ptr(),
394391
)
395392
});
396-
state.add_attribute("operand_segment_sizes", vector_attr);
393+
state.add_attribute("operand_segment_sizes", dense_array_attr);
397394
})
398395
}
399396
}

src/circt/src/mlir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub trait OperationExt: WrapRaw<RawType = MlirOperation> {
9696
unsafe {
9797
let flags = mlirOpPrintingFlagsCreate();
9898
if with_debug_info {
99-
mlirOpPrintingFlagsEnableDebugInfo(flags, false);
99+
mlirOpPrintingFlagsEnableDebugInfo(flags, with_debug_info, false);
100100
}
101101
mlirOperationPrintWithFlags(
102102
self.raw(),

0 commit comments

Comments
 (0)