Skip to content

Commit

Permalink
Create a class for SEV management
Browse files Browse the repository at this point in the history
All the SEV-related methods and data were declared static and
outside of any class. It lead to issues with map objects. Now
everything is collected to a single class which instance is
created for every module being processed
  • Loading branch information
mshelego authored and sys-cmllvm committed Jan 22, 2024
1 parent da892e1 commit ef56cac
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 449 deletions.
4 changes: 2 additions & 2 deletions GenXIntrinsics/lib/GenXIntrinsics/GenXSPIRVReaderAdaptor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*========================== begin_copyright_notice ============================
Copyright (C) 2020-2022 Intel Corporation
Copyright (C) 2020-2024 Intel Corporation
SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -578,7 +578,7 @@ bool GenXSPIRVReaderAdaptorImpl::run(Module &M) {
}

rewriteKernelsTypes(M);
restoreSingleElementVectors(M);
SEVUtil(M).restoreSEVs();

for (auto &&F : M)
runOnFunction(F);
Expand Down
4 changes: 2 additions & 2 deletions GenXIntrinsics/lib/GenXIntrinsics/GenXSPIRVWriterAdaptor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*========================== begin_copyright_notice ============================
Copyright (C) 2020-2023 Intel Corporation
Copyright (C) 2020-2024 Intel Corporation
SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -606,7 +606,7 @@ bool GenXSPIRVWriterAdaptorImpl::run(Module &M) {
rewriteKernelsTypes(M);

if (RewriteSingleElementVectors)
rewriteSingleElementVectors(M);
SEVUtil(M).rewriteSEVs();

#if VC_INTR_LLVM_VERSION_MAJOR >= 16
// ReadNone and ReadOnly is no more supported for intrinsics:
Expand Down
Loading

0 comments on commit ef56cac

Please sign in to comment.