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
23cff66f
Commit
23cff66f
authored
Nov 17, 2017
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPU: Add a method instead of using friend access
parent
c5cce78d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
compiler.cpp
src/ngraph/codegen/compiler.cpp
+1
-1
compiler.hpp
src/ngraph/codegen/compiler.hpp
+1
-3
No files found.
src/ngraph/codegen/compiler.cpp
View file @
23cff66f
...
...
@@ -318,7 +318,7 @@ std::unique_ptr<llvm::Module> StaticCompiler::compile(Compiler* compiler, const
m_compiler
->
getInvocation
().
getPreprocessorOpts
().
addRemappedFile
(
m_source_name
,
buffer
.
get
());
// Create and execute action
auto
&
compiler_action
=
compiler
->
compiler_action
;
auto
&
compiler_action
=
compiler
->
get_compiler_action
()
;
compiler_action
.
reset
(
new
EmitCodeGenOnlyAction
());
std
::
unique_ptr
<
llvm
::
Module
>
rc
;
if
(
m_compiler
->
ExecuteAction
(
*
compiler_action
)
==
true
)
...
...
src/ngraph/codegen/compiler.hpp
View file @
23cff66f
...
...
@@ -50,13 +50,11 @@ private:
class
ngraph
::
codegen
::
Compiler
{
friend
StaticCompiler
;
public
:
Compiler
();
~
Compiler
();
std
::
unique_ptr
<
llvm
::
Module
>
compile
(
const
std
::
string
&
source
);
std
::
unique_ptr
<
clang
::
CodeGenAction
>&
get_compiler_action
()
{
return
compiler_action
;
}
private
:
std
::
unique_ptr
<
clang
::
CodeGenAction
>
compiler_action
;
};
...
...
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