[all-commits] [llvm/llvm-project] ed01de: [OpenMP][OMPIRBuilder] Move SIMD alignment calcula...
Dominik Adamski via All-commits
all-commits at lists.llvm.org
Fri Jan 13 12:24:15 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed01de67433174d3157e9d239d59dd465d52c6a5
https://github.com/llvm/llvm-project/commit/ed01de67433174d3157e9d239d59dd465d52c6a5
Author: Dominik Adamski <dominik.adamski at amd.com>
Date: 2023-01-13 (Fri, 13 Jan 2023)
Changed paths:
M clang/include/clang/Basic/TargetInfo.h
M clang/lib/AST/ASTContext.cpp
M clang/lib/Basic/TargetInfo.cpp
M clang/lib/Basic/Targets/PPC.h
M clang/lib/Basic/Targets/WebAssembly.h
M clang/lib/Basic/Targets/X86.cpp
M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
M llvm/include/llvm/Target/TargetMachine.h
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
M llvm/lib/Target/X86/X86TargetMachine.cpp
Log Message:
-----------
[OpenMP][OMPIRBuilder] Move SIMD alignment calculation to LLVM Frontend
Currently default simd alignment is specified by Clang specific TargetInfo
class. This class cannot be reused for LLVM Flang. If we move the default
alignment field into TargetMachine class then we can create TargetMachine
objects and query them to find SIMD alignment.
Scope of changes:
1) Added information about maximal allowed SIMD alignment to TargetMachine
classes.
2) Removed getSimdDefaultAlign function from Clang TargetInfo class.
3) Refactored createTargetMachine function.
Reviewed By: jsjodin
Differential Revision: https://reviews.llvm.org/D138496
More information about the All-commits
mailing list