Skip to content

Commit

Permalink
Fix build problem
Browse files Browse the repository at this point in the history
Signed-off-by: Tiotto, Ettore <[email protected]>
  • Loading branch information
etiotto committed Nov 3, 2023
1 parent 3457aa0 commit 53473af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ void lookupOrInsertIntrinsic(ConversionPatternRewriter &rewriter, Operation *op,
auto linkageTypeAttr =
rewriter.getAttr<spirv::LinkageTypeAttr>(spirv::LinkageType::Import);
std::replace(name.begin(), name.end(), '_', '.');
auto nameAttr = StringAttr::get(rewriter.getContext(), name);
auto linkage = spirv::LinkageAttributesAttr::get(rewriter.getContext(),
nameAttr, linkageTypeAttr);
name, linkageTypeAttr);
func.setLinkageAttributesAttr(linkage);
func->setAttr("VectorComputeFunctionINTEL", rewriter.getUnitAttr());
}
Expand Down

0 comments on commit 53473af

Please sign in to comment.