コード例 #1
0
ファイル: lto.cpp プロジェクト: emaste/llvm
const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) {
  maybeParseOptions(cg);
  LibLTOCodeGenerator *CG = unwrap(cg);
  CG->NativeObjectFile = CG->compileOptimized();
  if (!CG->NativeObjectFile)
    return nullptr;
  *length = CG->NativeObjectFile->getBufferSize();
  return CG->NativeObjectFile->getBufferStart();
}
コード例 #2
0
ファイル: lto.cpp プロジェクト: dtig/llvm
const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) {
    maybeParseOptions(cg);
    LibLTOCodeGenerator *CG = unwrap(cg);
    CG->NativeObjectFile = CG->compile(DisableInline, DisableGVNLoadPRE,
                                       DisableLTOVectorization, sLastErrorString);
    if (!CG->NativeObjectFile)
        return nullptr;
    *length = CG->NativeObjectFile->getBufferSize();
    return CG->NativeObjectFile->getBufferStart();
}
コード例 #3
0
ファイル: lto.cpp プロジェクト: emaste/llvm
bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) {
  maybeParseOptions(cg);
  return !unwrap(cg)->compile_to_file(
      name, DisableVerify, DisableInline, DisableGVNLoadPRE,
      DisableLTOVectorization);
}
コード例 #4
0
ファイル: lto.cpp プロジェクト: emaste/llvm
bool lto_codegen_optimize(lto_code_gen_t cg) {
  maybeParseOptions(cg);
  return !unwrap(cg)->optimize(DisableVerify, DisableInline, DisableGVNLoadPRE,
                               DisableLTOVectorization);
}
コード例 #5
0
ファイル: lto.cpp プロジェクト: emaste/llvm
bool lto_codegen_write_merged_modules(lto_code_gen_t cg, const char *path) {
  maybeParseOptions(cg);
  return !unwrap(cg)->writeMergedModules(path);
}
コード例 #6
0
ファイル: lto.cpp プロジェクト: Automatic/firmware-llvm
const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) {
  maybeParseOptions(cg);
  return unwrap(cg)->compileOptimized(length, sLastErrorString);
}
コード例 #7
0
ファイル: lto.cpp プロジェクト: Automatic/firmware-llvm
const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) {
  maybeParseOptions(cg);
  return unwrap(cg)->compile(length, DisableInline,
                             DisableGVNLoadPRE, DisableLTOVectorization,
                             sLastErrorString);
}