Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 16, 2023
1 parent 2211ae2 commit a406e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,14 +674,14 @@ void callSPMVDiagUpdate(IRBuilder<> &B, Module &M, BlasInfo blas,
ArrayRef<OperandBundleDef> bundles, bool byRef,
bool julia_decl) {
// add spmv diag update call if not already present
Twine fnc_name = Twine("__enzyme_spmv_diag") + blas.floatType + blas.suffix;
auto fnc_name = "__enzyme_spmv_diag" + blas.floatType + blas.suffix;

// spmvDiagHelper(uplo, n, alpha, x, incx, ya, incy, APa)
auto FDiagUpdateT = FunctionType::get(
B.getVoidTy(),
{BlasCT, BlasIT, BlasFPT, BlasPT, BlasIT, BlasPT, BlasIT, BlasPT}, false);
Function *F = cast<Function>(
M.getOrInsertFunction(fnc_name.str(), FDiagUpdateT).getCallee());
M.getOrInsertFunction(fnc_name, FDiagUpdateT).getCallee());

if (!F->empty()) {
B.CreateCall(F, args, bundles);
Expand Down

0 comments on commit a406e3c

Please sign in to comment.