[SYCL][NFC] Use the non-deprecated setAlignment() in LowerWGScope#1420
Merged
bader merged 1 commit intointel:syclfrom Mar 29, 2020
Merged
Conversation
The commit switches to using the `MaybeAlign` overload directly,
which addresses:
```
*/llvm/llvm/lib/SYCLLowerIR/LowerWGScope.cpp: In function 'llvm::Value* spirv::genPseudoLocalID(llvm::Instruction&, const llvm::Triple&)':
*/llvm/llvm/lib/SYCLLowerIR/LowerWGScope.cpp:929:28: warning: 'void llvm::GlobalObject::setAlignment(unsigned int)' is deprecated [-Wdeprecated-declarations]
G->setAlignment(Align);
^
In file included from */llvm/llvm/include/llvm/Support/ErrorHandling.h:17:0,
from */llvm/llvm/include/llvm/ADT/Hashing.h:48,
from */llvm/llvm/include/llvm/ADT/ArrayRef.h:12,
from */llvm/llvm/include/llvm/ADT/DenseMapInfo.h:16,
from */llvm/llvm/include/llvm/ADT/DenseMap.h:16,
from */llvm/llvm/include/llvm/ADT/DenseSet.h:16,
from */llvm/llvm/include/llvm/IR/Function.h:20,
from */llvm/llvm/include/llvm/SYCLLowerIR/LowerWGScope.h:15,
from */llvm/llvm/lib/SYCLLowerIR/LowerWGScope.cpp:76:
*/llvm/llvm/include/llvm/IR/GlobalObject.h:86:34: note: declared here
LLVM_ATTRIBUTE_DEPRECATED(void setAlignment(unsigned Align),
```
Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
248d8e9 to
766d39b
Compare
AlexeySachkov
approved these changes
Mar 29, 2020
alexbatashev
pushed a commit
to alexbatashev/llvm
that referenced
this pull request
Apr 15, 2020
…c_abi_checks * origin/sycl: (6966 commits) [NFC][SYCL] Do not add `sycl_device` attribute to OpenCL kernel (intel#1439) [SYCL][NFC] Move SYCL pipe metadata call to be inside the null check for D (intel#1436) [SYCL][NFC] Move template function definition to .h file (intel#1433) [SYCL] Don't expose vector of booleans as storage format (intel#1419) [SYCL] Don't throw exceptions from destructors (intel#1378) [BuildBot] Add support for multiple CMake options (intel#1434) [SYCL][NFC] Fix warning inline namespace reopened as no-inline (intel#1435) [SYCL] Check if loadPlugin returns a nullptr (intel#1411) [SYCL] Release notes for February'20 SYCL implementation update (intel#1400) [SYCL][Doc] Improve contribution guidelines (intel#1422) [BuildBot] Add --cmake-opts option to configure.py script (intel#1430) [SYCL] Enable non-read-write memory object mapping in scheduler (intel#1390) [SYCL][Driver] Do not store AOT-specific options in the image descriptor (intel#1428) [Driver][NFC] Fix string problem used for tracking duplicate triples (intel#1424) [SYCL][NFC] Use the non-deprecated setAlignment() in LowerWGScope (intel#1420) [SYCL][NFC] Fix formatting in GetStartedGuide (intel#1417) [NFC] Move CODEOWNERS file to enable GitHub automation (intel#1418) [SYCL] Add test for private array init by zeroes (intel#1402) [Driver][SYCL][FPGA] Adjust device and AOCX link order for FPGA (intel#1389) [SYCL] Change runtime check to assert in program_manager.cpp (intel#1413) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The commit switches to using the
MaybeAlignoverload directly,which addresses:
Signed-off-by: Artem Gindinson artem.gindinson@intel.com