Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
systemc-clang
Commits
717bf221
Commit
717bf221
authored
Dec 05, 2018
by
rmrf
Browse files
Successful compile with clang-7.0.0 but linking errors
parent
e403f492
Changes
7
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
717bf221
paths.sh
./
paths.sh
CMakeLists.txt
View file @
717bf221
...
...
@@ -58,7 +58,7 @@ endif(USE_SAUTO)
clangAnalysis
clangARCMigrate
clangRewriteFrontend
clangRewrite
Core
clangRewrite
clangEdit
clangAST
clangLex
...
...
src/PluginAction.h
View file @
717bf221
...
...
@@ -21,16 +21,15 @@ using namespace scpar;
template
<
typename
A
>
class
PluginAction
{
public:
PluginAction
(
int
argc
,
const
char
**
argv
)
{
CommonOptionsParser
OptionsParser
(
argc
,
argv
);
PluginAction
(
int
argc
,
const
char
**
argv
)
{
llvm
::
cl
::
OptionCategory
category
(
"systemc-clang options"
);
CommonOptionsParser
OptionsParser
(
argc
,
argv
,
category
);
ClangTool
Tool
(
OptionsParser
.
getCompilations
(),
OptionsParser
.
getSourcePathList
()
);
FrontendActionFactory
*
fe
=
newFrontendActionFactory
<
LightsCameraAction
<
A
>
>
(
);
Tool
.
run
(
fe
);
//
FrontendActionFactory *fe =
newFrontendActionFactory < LightsCameraAction < A > >();
//Tool.run (fe
);
Tool
.
run
(
newFrontendActionFactory
<
LightsCameraAction
<
SystemCConsumer
>
>
().
get
()
);
};
...
...
src/SCuitable/FindGPUMacro.cpp
View file @
717bf221
...
...
@@ -202,6 +202,7 @@ void FindGPUMacro::dump(){
void
FindGPUMacro
::
analyze_value_decl
(
ValueDecl
*
val
)
{
QualType
type
=
val
->
getType
();
/*
std::pair<uint64_t, unsigned> fieldInfo =
val->getASTContext().getTypeInfo(val->getType());
uint64_t typeSize = fieldInfo.first;
...
...
@@ -211,6 +212,7 @@ void FindGPUMacro::analyze_value_decl(ValueDecl *val) {
<< ", size (bits): " << typeSize
<< ", align (bits): " << fieldAlign
<< "\n";
*/
}
void
FindGPUMacro
::
analyze_array_base
(
Expr
*
base
,
bool
isLHS
)
{
...
...
src/SuspensionAutomata.cpp
View file @
717bf221
...
...
@@ -288,9 +288,7 @@ void Transition::dump(raw_ostream & os)
}
////////////////////////////////////////////////////////////////////////////////////////
SuspensionAutomata
::
SuspensionAutomata
(
vector
<
WaitContainer
*>
waitCalls
,
CXXMethodDecl
*
d
,
ASTContext
*
a
,
raw_ostream
&
os
)
:
_d
(
d
),
_a
(
a
),
_os
(
os
),
_cfg
(
NULL
)
SuspensionAutomata
::
SuspensionAutomata
(
vector
<
WaitContainer
*>
waitCalls
,
CXXMethodDecl
*
d
,
ASTContext
*
a
,
raw_ostream
&
os
)
:
_d
(
d
),
_a
(
a
),
_os
(
os
)
{
for
(
int
i
=
0
;
i
<
waitCalls
.
size
();
i
++
)
{
...
...
src/SuspensionAutomata.h
View file @
717bf221
...
...
@@ -160,7 +160,7 @@ namespace scpar {
vector
<
CallExpr
*>
_waitCalls
;
susCFGSuccIDMapType
susCFGSuccIDMap
;
susCFGStateMapType
susCFGStateMap
;
CFG
*
_cfg
;
unique_ptr
<
CFG
>
_cfg
;
ASTContext
*
_a
;
raw_ostream
&
_os
;
susCFGVectorType
_susCFGVector
;
...
...
src/SystemCClang.h
View file @
717bf221
...
...
@@ -91,10 +91,10 @@ namespace scpar
{
protected:
virtual
ASTConsumer
*
CreateASTConsumer
(
CompilerInstance
&
ci
,
StringRef
)
{
return
new
A
(
ci
);
virtual
std
::
unique_ptr
<
clang
::
ASTConsumer
>
CreateASTConsumer
(
CompilerInstance
&
ci
,
llvm
::
StringRef
inFile
)
{
// virtual ASTConsumer * CreateASTConsumer(CompilerInstance & ci,
StringRef)
{
return
std
::
unique_ptr
<
clang
::
ASTConsumer
>
(
new
SystemCConsumer
(
ci
));
//
return new A(ci);
};
};
// End class LightsCameraAction
...
...
Write
Preview
Supports
Markdown
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