Commit 4992e38a authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files


While having an LLVM build with assert on, fixing those asserts:

- extraneous eraseOp

- unused variable which is actually an error (cannot get Int/Float bit width of a memref type)
Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <>
parent 40d72743
......@@ -70,7 +70,7 @@ antlrcpp::Any qasm3_expression_generator::visitTerminal(
// location)); number_value.dump(); auto idx_minus_1 =
// builder.create<mlir::SubIOp>(location, current_value,
// get_or_create_constant_integer_value(1, location));
auto bw = indexed_variable_value.getType().getIntOrFloatBitWidth();
// auto bw = indexed_variable_value.getType().getIntOrFloatBitWidth();
// NOTE: UnsignedShiftRightOp (std dialect) expects operands of type "signless-integer-like"
// i.e. although it treats the operants as unsigned, they must be of type signless (int not uint).
......@@ -76,7 +76,6 @@ QallocOpLowering::matchAndRewrite(Operation *op, ArrayRef<Value> operands,
// Remove the old QuantumDialect QallocOp
rewriter.replaceOp(op, qbit_array);
// Save the qubit array variable to the symbol table
variables.insert({qreg_name, qbit_array});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment