ldc/runtime/jit-rt/cpp-so/bind.h
2018-09-06 21:21:47 +03:00

33 lines
917 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//===-- bind.h - jit support ------------------------------------*- C++ -*-===//
//
// LDC the LLVM D compiler
//
// This file is distributed under the Boost Software License. See the LICENSE
// file for details.
//
//===----------------------------------------------------------------------===//
//
// Jit runtime - support routines for bind, allow to dynamically create
// specialized functions for each bind instance.
//
//===----------------------------------------------------------------------===//
#ifndef BIND_H
#define BIND_H
#include "param_slice.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
namespace llvm {
class Module;
class Function;
}
llvm::Function *bindParamsToFunc(
llvm::Module &module, llvm::Function &srcFunc,
const llvm::ArrayRef<ParamSlice> &params,
llvm::function_ref<void(const std::string &)> errHandler);
#endif // BIND_H