Skip to content

Commit

Permalink
Fix incorrectly created LSC 2D block writes
Browse files Browse the repository at this point in the history
This change is to correct overloaded types for GenISA_LSC2DBlockWrite to create its valid function declaration (currently, it uses void instead of anyint).
  • Loading branch information
krystian-andrzejewski authored and igcbot committed Aug 9, 2023
1 parent 8732771 commit 92bff9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ void SubGroupFuncsResolution::subGroup2DBlockOperation(llvm::CallInst& CI, llvm:
BlockFunc = GenISAIntrinsic::getDeclaration(
CI.getCalledFunction()->getParent(),
GenISAIntrinsic::GenISA_LSC2DBlockWrite,
CI.getCalledFunction()->getReturnType());
CI.getArgOperand(5)->getType());
}

auto* BlockOp = cast<GenIntrinsicInst>(CallInst::Create(BlockFunc, args, "", &CI));
Expand Down

0 comments on commit 92bff9b

Please sign in to comment.