2003-11-06 06:13:10 +08:00
|
|
|
//===- gccld.h - Utility functions header file ------------------*- C++ -*-===//
|
2005-04-22 08:00:37 +08:00
|
|
|
//
|
2003-10-21 01:47:21 +08:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 08:00:37 +08:00
|
|
|
//
|
2003-10-21 01:47:21 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2003-09-20 04:24:40 +08:00
|
|
|
//
|
|
|
|
// This file contains function prototypes for the functions in util.cpp.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/Module.h"
|
2004-11-15 06:17:49 +08:00
|
|
|
#include "llvm/Linker.h"
|
2003-09-20 04:24:40 +08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
|
|
|
#include <ostream>
|
|
|
|
|
2003-11-12 06:41:34 +08:00
|
|
|
namespace llvm {
|
|
|
|
|
2003-09-20 04:24:40 +08:00
|
|
|
int
|
2005-04-20 12:07:47 +08:00
|
|
|
GenerateBytecode (Module *M,
|
2004-12-03 05:26:10 +08:00
|
|
|
int StripLevel,
|
2003-09-20 04:24:40 +08:00
|
|
|
bool Internalize,
|
2005-04-20 12:07:47 +08:00
|
|
|
std::ostream *Out);
|
2003-09-20 04:24:40 +08:00
|
|
|
|
|
|
|
int
|
2005-04-20 12:07:47 +08:00
|
|
|
GenerateAssembly (const std::string &OutputFilename,
|
|
|
|
const std::string &InputFilename,
|
|
|
|
const sys::Path &llc,
|
2005-04-20 11:22:18 +08:00
|
|
|
bool Verbose=false);
|
2004-04-07 00:43:13 +08:00
|
|
|
|
2005-04-22 08:00:37 +08:00
|
|
|
int
|
|
|
|
GenerateCFile (const std::string &OutputFile,
|
2005-02-28 16:45:35 +08:00
|
|
|
const std::string &InputFile,
|
2005-04-20 11:22:18 +08:00
|
|
|
const sys::Path &llc,
|
|
|
|
bool Verbose=false);
|
2003-09-20 04:24:40 +08:00
|
|
|
int
|
2005-04-20 12:07:47 +08:00
|
|
|
GenerateNative (const std::string &OutputFilename,
|
|
|
|
const std::string &InputFilename,
|
|
|
|
const std::vector<std::string> &LibPaths,
|
|
|
|
const std::vector<std::string> &Libraries,
|
|
|
|
const sys::Path &gcc,
|
2005-02-28 16:45:35 +08:00
|
|
|
char ** const envp,
|
|
|
|
bool Shared,
|
2005-04-20 12:07:47 +08:00
|
|
|
const std::string &RPath,
|
|
|
|
const std::string &SOName,
|
2005-04-20 11:22:18 +08:00
|
|
|
bool Verbose=false);
|
2003-09-20 04:24:40 +08:00
|
|
|
|
2003-11-12 06:41:34 +08:00
|
|
|
} // End llvm namespace
|