Skip to content

Commit 3742abe

Browse files
peplaigcbot
authored andcommitted
Changes in code.
1 parent 87325cd commit 3742abe

File tree

10 files changed

+6
-58
lines changed

10 files changed

+6
-58
lines changed

IGC/Compiler/Optimizer/OpenCLPasses/LocalBuffers/InlineLocalsResolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ void InlineLocalsResolution::computeOffsetList(Module& M, llvm::MapVector<Functi
497497
#if LLVM_VERSION_MAJOR < 11
498498
offset = iSTD::Align(offset, DL.getPreferredAlignment(G));
499499
#else
500-
offset = iSTD::Align(offset, (unsigned)DL.getPreferredAlign(G).value());
500+
offset = iSTD::Align(offset, DL.getPreferredAlign(G).value());
501501
#endif
502502
// Save the offset of the current local
503503
// (set the high bits to be non-0 here too)

IGC/Compiler/Optimizer/OpenCLPasses/ProgramScopeConstants/ProgramScopeConstantAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ bool ProgramScopeConstantAnalysis::runOnModule(Module& M)
219219
#if LLVM_VERSION_MAJOR < 11
220220
offset = iSTD::Align(offset, m_DL->getPreferredAlignment(globalVar));
221221
#else
222-
offset = iSTD::Align(offset, (unsigned)m_DL->getPreferredAlign(globalVar).value());
222+
offset = iSTD::Align(offset, m_DL->getPreferredAlign(globalVar).value());
223223
#endif
224224
inlineProgramScopeOffsets[globalVar] = offset;
225225
offset += (unsigned)(m_DL->getTypeAllocSize(globalVar->getType()->getPointerElementType()));

IGC/Compiler/tests/MemOpt/basic.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: igc_opt %s -S -o - %enable-basic-aa% -igc-memopt -instcombine | FileCheck %s
9+
; RUN: igc_opt %s -S -o - -basicaa -igc-memopt -instcombine | FileCheck %s
1010

1111
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f80:128:128-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-a:64:64-f80:128:128-n8:16:32:64"
1212

IGC/Compiler/tests/MemOpt/struct.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: igc_opt %s -S -o - %enable-basic-aa% -igc-memopt -instcombine | FileCheck %s
9+
; RUN: igc_opt %s -S -o - -basicaa -igc-memopt -instcombine | FileCheck %s
1010

1111
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f80:128:128-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-a:64:64-f80:128:128-n8:16:32:64"
1212

IGC/Compiler/tests/ResolveGAS/memcpy.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ define internal spir_func void @func() {
3030
ret void
3131
}
3232

33-
; CHECK: declare void @llvm.memcpy.p0i8.p0i8.i64(i8* {{(noalias )?}}nocapture writeonly, i8* {{(noalias )?}}nocapture readonly, i64, i1 immarg)
33+
; CHECK: declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i1 immarg)
3434
declare void @llvm.memcpy.p4i8.p4i8.i64(i8 addrspace(4)* nocapture writeonly, i8 addrspace(4)* nocapture readonly, i64, i1 immarg)
3535

IGC/Compiler/tests/lit.cfg.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,3 @@
4343
tools = [ToolSubst('igc_opt')]
4444

4545
llvm_config.add_tool_substitutions(tools, tool_dirs)
46-
47-
# Add substitutions for pass configuration options to account for
48-
# opt CLI changes between LLVM 10 and 11.
49-
# FIXME: Remove once older-than-11 LLVM versions go out of use.
50-
if int(config.llvm_version) < 11:
51-
config.substitutions.append(('%enable-basic-aa%', '-basicaa'))
52-
else:
53-
config.substitutions.append(('%enable-basic-aa%', '--basic-aa'))

IGC/Compiler/tests/lit.site.cfg.py.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import sys
1212

1313
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
14-
config.llvm_version = "@LLVM_VERSION_MAJOR@"
1514
config.lit_tools_dir = "@LLVM_TOOLS_DIR@"
1615
config.host_triple = "@LLVM_HOST_TRIPLE@"
1716
config.target_triple = "@TARGET_TRIPLE@"

IGC/WrapperLLVM/include/llvmWrapper/IR/DataLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace IGCLLVM
2626
#if LLVM_VERSION_MAJOR <= 10
2727
return DL->getPreferredAlignment(GV);
2828
#else
29-
return (unsigned)DL->getPreferredAlign(GV).value();
29+
return DL->getPreferredAlign(GV).value();
3030
#endif
3131
}
3232

IGC/WrapperLLVM/include/llvmWrapper/Support/SystemUtils.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

IGC/WrapperLLVM/include/llvmWrapper/Support/YAMLParser.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)