MLIR
24.0.0git
include
mlir
Dialect
LLVMIR
NVVMAttributes.h
Go to the documentation of this file.
1
//===- NVVMAttributes.h - NVVM enums and attributes -------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file declares the NVVM dialect enums and attributes.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef MLIR_DIALECT_LLVMIR_NVVMATTRIBUTES_H_
14
#define MLIR_DIALECT_LLVMIR_NVVMATTRIBUTES_H_
15
16
#include "
mlir/Dialect/GPU/IR/CompilationInterfaces.h
"
17
#include "
mlir/Dialect/LLVMIR/LLVMInterfaces.h
"
18
#include "
mlir/Dialect/LLVMIR/NVVMDialectDecl.h
"
19
#include "
mlir/Dialect/Ptr/IR/MemorySpaceInterfaces.h
"
20
#include "
mlir/IR/BuiltinAttributes.h
"
21
22
#include "mlir/Dialect/LLVMIR/NVVMOpsEnums.h.inc"
23
24
namespace
mlir
{
25
namespace
NVVM
{
26
/// Utility functions to compare NVVMMemorySpace with unsigned values.
27
inline
bool
operator==
(
unsigned
as, NVVMMemorySpace memSpace) {
28
return
as ==
static_cast<
unsigned
>
(memSpace);
29
}
30
inline
bool
operator==
(NVVMMemorySpace memSpace,
unsigned
as) {
31
return
static_cast<
unsigned
>
(memSpace) == as;
32
}
33
inline
bool
operator!=
(
unsigned
as, NVVMMemorySpace memSpace) {
34
return
as !=
static_cast<
unsigned
>
(memSpace);
35
}
36
inline
bool
operator!=
(NVVMMemorySpace memSpace,
unsigned
as) {
37
return
static_cast<
unsigned
>
(memSpace) != as;
38
}
39
}
// namespace NVVM
40
}
// namespace mlir
41
42
#define GET_ATTRDEF_CLASSES
43
#include "mlir/Dialect/LLVMIR/NVVMOpsAttributes.h.inc"
44
45
#endif
// MLIR_DIALECT_LLVMIR_NVVMATTRIBUTES_H_
CompilationInterfaces.h
LLVMInterfaces.h
MemorySpaceInterfaces.h
NVVMDialectDecl.h
BuiltinAttributes.h
mlir::NVVM
Definition
GPUToNVVM.h:18
mlir::NVVM::operator==
bool operator==(unsigned as, NVVMMemorySpace memSpace)
Utility functions to compare NVVMMemorySpace with unsigned values.
Definition
NVVMAttributes.h:27
mlir::NVVM::operator!=
bool operator!=(unsigned as, NVVMMemorySpace memSpace)
Definition
NVVMAttributes.h:33
mlir
Include the generated interface declarations.
Definition
ABIRewriteContext.h:32
Generated on
for MLIR by
1.14.0