1 //===-- NVPTXutil.h - Functions exported to CodeGen --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the functions that can be used in CodeGen.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TARGET_NVPTX_UTIL_H
15 #define LLVM_TARGET_NVPTX_UTIL_H
17 #include "llvm/CodeGen/MachineFunction.h"
18 #include "llvm/CodeGen/MachineInstr.h"
21 bool isParamLoad(const MachineInstr *);
22 uint64_t encode_leb128(const char *str);