Skip to content

Commit

Permalink
Convert tabs to spaces in source files
Browse files Browse the repository at this point in the history
Convert tabs to spaces in source files
  • Loading branch information
mateuszchudyk authored and igcbot committed Sep 13, 2023
1 parent 3080cd9 commit 53744bb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
38 changes: 19 additions & 19 deletions IGC/WrapperLLVM/include/llvmWrapper/Transforms/Utils/Local.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@ SPDX-License-Identifier: MIT

namespace IGCLLVM
{
/// In LLVM 11 first argument changed type from SmallVectorImpl<Instruction*> to SmallVectorImpl<WeakTrackingVH>
/// For LLVM >= 11: Proxy llvm:: call.
/// For LLVM < 11: Unpack WeakTrackingVH and call normally.
inline void RecursivelyDeleteTriviallyDeadInstructions(
llvm::SmallVectorImpl<llvm::WeakTrackingVH>& DeadInsts,
const llvm::TargetLibraryInfo* TLI = nullptr,
llvm::MemorySSAUpdater* MSSAU = nullptr)
{
using namespace llvm;
/// In LLVM 11 first argument changed type from SmallVectorImpl<Instruction*> to SmallVectorImpl<WeakTrackingVH>
/// For LLVM >= 11: Proxy llvm:: call.
/// For LLVM < 11: Unpack WeakTrackingVH and call normally.
inline void RecursivelyDeleteTriviallyDeadInstructions(
llvm::SmallVectorImpl<llvm::WeakTrackingVH>& DeadInsts,
const llvm::TargetLibraryInfo* TLI = nullptr,
llvm::MemorySSAUpdater* MSSAU = nullptr)
{
using namespace llvm;

#if LLVM_VERSION_MAJOR < 11
SmallVector<Instruction*, 8> instPtrsVector = SmallVector<Instruction*, 8>();
SmallVector<Instruction*, 8> instPtrsVector = SmallVector<Instruction*, 8>();

// 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<Instruction>(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<Instruction>(tmpVecItem));
}

llvm::RecursivelyDeleteTriviallyDeadInstructions(instPtrsVector, TLI, MSSAU);
llvm::RecursivelyDeleteTriviallyDeadInstructions(instPtrsVector, TLI, MSSAU);
#else
llvm::RecursivelyDeleteTriviallyDeadInstructions(DeadInsts, TLI, MSSAU);
llvm::RecursivelyDeleteTriviallyDeadInstructions(DeadInsts, TLI, MSSAU);
#endif
}
}
}
#endif
4 changes: 2 additions & 2 deletions IGC/common/SIPKernels/Gen12LPSIPCSRDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions IGC/common/SIPKernels/Gen12LPSIPCSRDebugBindless.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 53744bb

Please sign in to comment.