MLIR 24.0.0git
NVVMIntrinsicLowering.h
Go to the documentation of this file.
1//===- NVVMIntrinsicLowering.h - NVVM op lowering to intrinsics -*- 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 what the NVVM ops use to declare their lowering to LLVM
10// intrinsics, such as `getIntrinsicIDAndArgs`.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef MLIR_DIALECT_LLVMIR_NVVMINTRINSICLOWERING_H_
15#define MLIR_DIALECT_LLVMIR_NVVMINTRINSICLOWERING_H_
16
17#include "llvm/ADT/SmallVector.h"
18#include "llvm/IR/Intrinsics.h"
19
20#include <utility>
21
22namespace llvm {
23class IRBuilderBase;
24class Value;
25} // namespace llvm
26
27namespace mlir {
28namespace LLVM {
30} // namespace LLVM
31
32namespace NVVM {
33/// A pair type of LLVM's Intrinsic ID and args (which are llvm values).
34/// This type is returned by the getIntrinsicIDAndArgs() methods.
35using IDArgPair =
36 std::pair<llvm::Intrinsic::ID, llvm::SmallVector<llvm::Value *>>;
37} // namespace NVVM
38} // namespace mlir
39
40#endif // MLIR_DIALECT_LLVMIR_NVVMINTRINSICLOWERING_H_
Implementation class for module translation.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Definition CallGraph.h:229
std::pair< llvm::Intrinsic::ID, llvm::SmallVector< llvm::Value * > > IDArgPair
A pair type of LLVM's Intrinsic ID and args (which are llvm values).
Include the generated interface declarations.