diff options
author | Dominik Adamski <dominik.adamski@amd.com> | 2022-11-22 04:55:39 -0600 |
---|---|---|
committer | Dominik Adamski <dominik.adamski@amd.com> | 2023-01-13 14:07:29 -0600 |
commit | ed01de67433174d3157e9d239d59dd465d52c6a5 (patch) | |
tree | d0a66a6ca07f2ed1d272d8f5704e5117700ae455 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | 7ce775feac15bcb8a7b499bdb5e1c355347a710f (diff) | |
download | llvm-ed01de67433174d3157e9d239d59dd465d52c6a5.zip llvm-ed01de67433174d3157e9d239d59dd465d52c6a5.tar.gz llvm-ed01de67433174d3157e9d239d59dd465d52c6a5.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp index 630c786..a76647f 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp @@ -139,6 +139,7 @@ WebAssemblyTargetMachine::WebAssemblyTargetMachine( this->Options.FunctionSections = true; this->Options.DataSections = true; this->Options.UniqueSectionNames = true; + SimdDefaultAlignment = 128; initAsmInfo(); |