Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
c9ea4ca1
Commit
c9ea4ca1
authored
Nov 21, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix per review comments
parent
a23b9241
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
compiler.cpp
src/ngraph/codegen/compiler.cpp
+3
-3
compiler.hpp
src/ngraph/codegen/compiler.hpp
+2
-2
external_function.cpp
src/ngraph/runtime/cpu/external_function.cpp
+1
-1
No files found.
src/ngraph/codegen/compiler.cpp
View file @
c9ea4ca1
...
...
@@ -74,9 +74,9 @@ Compiler::~Compiler()
{
}
void
Compiler
::
set_precomiled_header_source
(
const
std
::
string
&
source
)
void
Compiler
::
set_precom
p
iled_header_source
(
const
std
::
string
&
source
)
{
s_static_compiler
.
set_precomiled_header_source
(
source
);
s_static_compiler
.
set_precom
p
iled_header_source
(
source
);
}
std
::
unique_ptr
<
llvm
::
Module
>
Compiler
::
compile
(
const
std
::
string
&
source
)
...
...
@@ -316,7 +316,7 @@ std::unique_ptr<llvm::Module> StaticCompiler::compile(const string& source)
// Preprocessor options
auto
&
PPO
=
m_compiler
->
getInvocation
().
getPreprocessorOpts
();
PPO
.
ImplicitPCHInclude
=
m_pch_path
;
PPO
.
DisablePCHValidation
=
1
;
PPO
.
DisablePCHValidation
=
0
;
}
// Map code filename to a memoryBuffer
...
...
src/ngraph/codegen/compiler.hpp
View file @
c9ea4ca1
...
...
@@ -51,7 +51,7 @@ class ngraph::codegen::Compiler
public
:
Compiler
();
~
Compiler
();
void
set_precomiled_header_source
(
const
std
::
string
&
source
);
void
set_precom
p
iled_header_source
(
const
std
::
string
&
source
);
std
::
unique_ptr
<
llvm
::
Module
>
compile
(
const
std
::
string
&
source
);
private
:
...
...
@@ -65,7 +65,7 @@ public:
void
set_debuginfo_enabled
(
bool
state
)
{
m_debuginfo_enabled
=
state
;
}
bool
is_debuginfo_enabled
()
{
return
m_debuginfo_enabled
;
}
void
set_precomiled_header_source
(
const
std
::
string
&
source
)
void
set_precom
p
iled_header_source
(
const
std
::
string
&
source
)
{
m_precomiled_header_source
=
source
;
}
...
...
src/ngraph/runtime/cpu/external_function.cpp
View file @
c9ea4ca1
...
...
@@ -319,7 +319,7 @@ using namespace ngraph::runtime::cpu::eigen;
codegen
::
Compiler
compiler
;
codegen
::
ExecutionEngine
execution_engine
;
compiler
.
set_precomiled_header_source
(
pch_header_source
);
compiler
.
set_precom
p
iled_header_source
(
pch_header_source
);
auto
llvm_module
=
compiler
.
compile
(
code
);
if
(
llvm_module
==
nullptr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment