[ESI] Use new ParameterAttr for module parameters (#1817)

This fixes a compilation error in the integration test where ESI was not
switched to use a new dedicated ParameterAttr introduced in 471e60ce.
This commit is contained in:
Andrew Young 2021-09-20 13:25:56 -07:00 committed by GitHub
parent f353f91267
commit f57dfdc357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -1122,20 +1122,20 @@ CosimLowering::matchAndRewrite(CosimEndpoint ep, ArrayRef<Value> operands,
// Set all the parameters.
SmallVector<Attribute, 8> params;
params.push_back(getParameterWithValue(
params.push_back(ParameterAttr::get(
"ENDPOINT_ID", rewriter.getI32IntegerAttr(ep.endpointID())));
params.push_back(getParameterWithValue(
params.push_back(ParameterAttr::get(
"SEND_TYPE_ID",
IntegerAttr::get(ui64Type, sendTypeSchema.capnpTypeID())));
params.push_back(
getParameterWithValue("SEND_TYPE_SIZE_BITS",
rewriter.getI32IntegerAttr(sendTypeSchema.size())));
params.push_back(getParameterWithValue(
ParameterAttr::get("SEND_TYPE_SIZE_BITS",
rewriter.getI32IntegerAttr(sendTypeSchema.size())));
params.push_back(ParameterAttr::get(
"RECV_TYPE_ID",
IntegerAttr::get(ui64Type, recvTypeSchema.capnpTypeID())));
params.push_back(
getParameterWithValue("RECV_TYPE_SIZE_BITS",
rewriter.getI32IntegerAttr(recvTypeSchema.size())));
ParameterAttr::get("RECV_TYPE_SIZE_BITS",
rewriter.getI32IntegerAttr(recvTypeSchema.size())));
// Set up the egest route to drive the EP's send ports.
ArrayType egestBitArrayType =