File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,13 +271,12 @@ struct NullCableOpToCallsRewrite
271271 StringRef qirQubitArrayAllocate = cudaq::opt::QIRArrayQubitAllocateArray;
272272 Type arrayQubitTy = M::getArrayType (rewriter.getContext ());
273273
274- // AllocaOp could have a size operand, or the size could be compile time
275- // known and encoded in the veq return type.
274+ // NullCableOp must have a constant size encoded in the `!quake.cable`
275+ // return type.
276276 auto loc = nullcable.getLoc ();
277277 quake::CableType type = nullcable.getType ();
278- auto constantSize = type.getSize ();
279- Value sizeOperand =
280- rewriter.create <arith::ConstantIntOp>(loc, constantSize, 64 );
278+ auto width = type.getSize ();
279+ Value sizeOperand = rewriter.create <arith::ConstantIntOp>(loc, width, 64 );
281280
282281 // Replace the NullCableOp with the QIR call.
283282 rewriter.replaceOpWithNewOp <func::CallOp>(
You can’t perform that action at this time.
0 commit comments