Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows dynamic build - unknown pragma GCC #36

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,10 @@ class ConvertVPUIP2VPUMI40XXPass final : public ConvertVPUIP2VPUMI40XXBase<Conve
return std::pair<mlir::Value, mlir::Value>(kernelRangeOp.getResult(), kernelInvocationOp.getResult());
}

#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
void replaceVPURTTaskOpWithKernelOps(mlir::MLIRContext* ctx, mlir::ModuleOp& moduleOp, mlir::func::FuncOp& funcOp,
Logger& _log) {
_log.info("VPUIP_VPUMI40XX pass: replaceVPURTTaskOpWithKernelOps()");
Expand Down Expand Up @@ -1037,7 +1039,9 @@ class ConvertVPUIP2VPUMI40XXPass final : public ConvertVPUIP2VPUMI40XXBase<Conve
}
}
}
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

void setBarrierIndexValues(mlir::MLIRContext* ctx, mlir::func::FuncOp& funcOp, Logger _log) {
auto barrierCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ void Const::ConstantFoldingCache::enqueueRequest(const Const::FoldingRequest& fo

Const::FoldingRequest Const::ConstantFoldingCache::getRequest() {
Const::FoldingRequest result;
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
_requestQueue.pop(result);
#endif
_requestQueue.pop(result);
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
return result;
}

Expand Down