diff --git a/IGC/WrapperLLVM/include/llvmWrapper/Transforms/Utils/Local.h b/IGC/WrapperLLVM/include/llvmWrapper/Transforms/Utils/Local.h index a4c4948077f5..4ca7ed6f7b2d 100644 --- a/IGC/WrapperLLVM/include/llvmWrapper/Transforms/Utils/Local.h +++ b/IGC/WrapperLLVM/include/llvmWrapper/Transforms/Utils/Local.h @@ -16,30 +16,30 @@ SPDX-License-Identifier: MIT namespace IGCLLVM { - /// In LLVM 11 first argument changed type from SmallVectorImpl to SmallVectorImpl - /// For LLVM >= 11: Proxy llvm:: call. - /// For LLVM < 11: Unpack WeakTrackingVH and call normally. - inline void RecursivelyDeleteTriviallyDeadInstructions( - llvm::SmallVectorImpl& DeadInsts, - const llvm::TargetLibraryInfo* TLI = nullptr, - llvm::MemorySSAUpdater* MSSAU = nullptr) - { - using namespace llvm; + /// In LLVM 11 first argument changed type from SmallVectorImpl to SmallVectorImpl + /// For LLVM >= 11: Proxy llvm:: call. + /// For LLVM < 11: Unpack WeakTrackingVH and call normally. + inline void RecursivelyDeleteTriviallyDeadInstructions( + llvm::SmallVectorImpl& DeadInsts, + const llvm::TargetLibraryInfo* TLI = nullptr, + llvm::MemorySSAUpdater* MSSAU = nullptr) + { + using namespace llvm; #if LLVM_VERSION_MAJOR < 11 - SmallVector instPtrsVector = SmallVector(); + SmallVector instPtrsVector = SmallVector(); - // Unpack items of type 'WeakTrackingVH' to 'Instruction*' - for (unsigned i = 0; i < DeadInsts.size(); i++) - { - Value* tmpVecItem = DeadInsts[i]; // Using 'WeakTrackingVH::operator Value*()' - instPtrsVector.push_back(cast(tmpVecItem)); - } + // Unpack items of type 'WeakTrackingVH' to 'Instruction*' + for (unsigned i = 0; i < DeadInsts.size(); i++) + { + Value* tmpVecItem = DeadInsts[i]; // Using 'WeakTrackingVH::operator Value*()' + instPtrsVector.push_back(cast(tmpVecItem)); + } - llvm::RecursivelyDeleteTriviallyDeadInstructions(instPtrsVector, TLI, MSSAU); + llvm::RecursivelyDeleteTriviallyDeadInstructions(instPtrsVector, TLI, MSSAU); #else - llvm::RecursivelyDeleteTriviallyDeadInstructions(DeadInsts, TLI, MSSAU); + llvm::RecursivelyDeleteTriviallyDeadInstructions(DeadInsts, TLI, MSSAU); #endif - } + } } #endif diff --git a/IGC/common/SIPKernels/Gen12LPSIPCSRDebug.h b/IGC/common/SIPKernels/Gen12LPSIPCSRDebug.h index ba22526d52e1..3f2fa4411baf 100644 --- a/IGC/common/SIPKernels/Gen12LPSIPCSRDebug.h +++ b/IGC/common/SIPKernels/Gen12LPSIPCSRDebug.h @@ -8,8 +8,8 @@ SPDX-License-Identifier: MIT namespace SIP { - const unsigned char Gen12LPSIPCSRDebug[] = - { + const unsigned char Gen12LPSIPCSRDebug[] = + { 0x61, 0x00, 0x00, 0x80, 0x20, 0x42, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x12, 0x00, 0x00, 0x61, 0x00, 0x00, 0x80, 0x20, 0x02, 0x01, 0xf0, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x01, 0x00, 0x80, diff --git a/IGC/common/SIPKernels/Gen12LPSIPCSRDebugBindless.h b/IGC/common/SIPKernels/Gen12LPSIPCSRDebugBindless.h index 8cc0fdc209d6..47f3ef29d993 100644 --- a/IGC/common/SIPKernels/Gen12LPSIPCSRDebugBindless.h +++ b/IGC/common/SIPKernels/Gen12LPSIPCSRDebugBindless.h @@ -8,8 +8,8 @@ SPDX-License-Identifier: MIT namespace SIP { - const unsigned char Gen12LPSIPCSRDebugBindless[] = - { + const unsigned char Gen12LPSIPCSRDebugBindless[] = + { 0x61, 0x00, 0x00, 0x80, 0x20, 0x42, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x12, 0x00, 0x00, 0x61, 0x00, 0x00, 0x80, 0x20, 0x02, 0x01, 0xf0, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x01, 0x00, 0x80,