[libomptarget][nfc] Replace static const with enum
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 16 Dec 2020 16:40:21 +0000 (16:40 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 16 Dec 2020 16:40:37 +0000 (16:40 +0000)
commitb607837c75d04cc007dcf855983dfa3b69f63d73
treec652c9639e819a87a6892d4106c498dd01a13f98
parent6e890ec7beb0874464a0af9f84e41a987f968b23
[libomptarget][nfc] Replace static const with enum

[libomptarget][nfc] Replace static const with enum

Semantically identical. Replaces 0xff... with ~0 to spare counting the f.
Has the advantage that the compiler doesn't need to prove the 4/8 byte
value dead before discarding it, and sidesteps the compilation question
associated with what static means for a single source language.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D93328
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h