ldc/runtime/jit-rt/cpp-so/valueparser.h
2017-11-05 22:47:10 +03:00

31 lines
882 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.

//===-- valueparser.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 - value parser.
// Reads data from host process and generates llvm::Constant suitable
// as initializer.
//
//===----------------------------------------------------------------------===//
#ifndef VALUEPARSER_H
#define VALUEPARSER_H
namespace llvm {
class Constant;
class Type;
class DataLayout;
}
struct Context;
llvm::Constant *parseInitializer(const Context &context,
const llvm::DataLayout &dataLayout,
llvm::Type *type, const void *data);
#endif // VALUEPARSER_H