Proteus
Programmable JIT compilation and optimization for C/C++ using LLVM
Loading...
Searching...
No Matches
AddressSpace.hpp
Go to the documentation of this file.
1#ifndef PROTEUS_ADDRESS_SPACE_HPP
2#define PROTEUS_ADDRESS_SPACE_HPP
3
4namespace proteus {
5
6enum class AddressSpace : unsigned int {
7 DEFAULT = 0,
8 GLOBAL = 1,
9 SHARED = 3,
10 CONSTANT = 4,
11 LOCAL = 5,
12};
13
14inline constexpr unsigned toLLVM(AddressSpace AS) {
15 return static_cast<unsigned>(AS);
16}
17
18} // namespace proteus
19
20#endif // PROTEUS_ADDRESS_SPACE_HPP
Definition BuiltinsCUDA.cpp:4
AddressSpace
Definition AddressSpace.hpp:6
constexpr unsigned toLLVM(AddressSpace AS)
Definition AddressSpace.hpp:14