Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
b6203634
Commit
b6203634
authored
Jul 28, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force instantiate these templates as well
parent
f49d0937
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Makefile
Makefile
+4
-2
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+6
-0
No files found.
Makefile
View file @
b6203634
...
@@ -943,13 +943,15 @@ pyston_release_gcc_pgo_instrumented: $(CMAKE_SETUP_RELEASE_GCC_PGO_INSTRUMENTED)
...
@@ -943,13 +943,15 @@ pyston_release_gcc_pgo_instrumented: $(CMAKE_SETUP_RELEASE_GCC_PGO_INSTRUMENTED)
$(NINJA)
-C
$(CMAKE_DIR_RELEASE_GCC_PGO_INSTRUMENTED)
-f
$(CMAKE_SETUP_RELEASE_GCC_PGO_INSTRUMENTED)
pyston copy_stdlib copy_libpyston
$(CMAKE_SHAREDMODS)
ext_cpython
$(NINJAFLAGS)
$(NINJA)
-C
$(CMAKE_DIR_RELEASE_GCC_PGO_INSTRUMENTED)
-f
$(CMAKE_SETUP_RELEASE_GCC_PGO_INSTRUMENTED)
pyston copy_stdlib copy_libpyston
$(CMAKE_SHAREDMODS)
ext_cpython
$(NINJAFLAGS)
ln
-sf
$(CMAKE_DIR_RELEASE_GCC_PGO_INSTRUMENTED)
/pyston
$@
ln
-sf
$(CMAKE_DIR_RELEASE_GCC_PGO_INSTRUMENTED)
/pyston
$@
PROFILE_TARGET
:=
./pyston
$(SRC_DIR)
/minibenchmarks/combined.py
$(CMAKE_DIR_RELEASE_GCC_PGO)/.trained
:
pyston_release_gcc_pgo_instrumented
$(CMAKE_DIR_RELEASE_GCC_PGO)/.trained
:
pyston_release_gcc_pgo_instrumented
@
echo
"Training pgo"
@
echo
"Training pgo"
mkdir
-p
$(CMAKE_DIR_RELEASE_GCC_PGO)
mkdir
-p
$(CMAKE_DIR_RELEASE_GCC_PGO)
(
cd
$(CMAKE_DIR_RELEASE_GCC_PGO_INSTRUMENTED)
&&
./pyston
$(SRC_DIR)
/minibenchmarks/combined.py
&&
./pyston
$(SRC_DIR)
/minibenchmarks/combined.py
)
&&
touch
$(CMAKE_DIR_RELEASE_GCC_PGO)
/.trained
(
cd
$(CMAKE_DIR_RELEASE_GCC_PGO_INSTRUMENTED)
&&
$(PROFILE_TARGET)
&&
$(PROFILE_TARGET)
)
&&
touch
$(CMAKE_DIR_RELEASE_GCC_PGO)
/.trained
pyston_pgo
:
pyston_release_gcc_pgo
pyston_pgo
:
pyston_release_gcc_pgo
ln
-s
$<
$@
ln
-s
f
$<
$@
.PHONY
:
format check_format
.PHONY
:
format check_format
format
:
$(CMAKE_SETUP_RELEASE)
format
:
$(CMAKE_SETUP_RELEASE)
...
...
src/runtime/objmodel.cpp
View file @
b6203634
...
@@ -3847,6 +3847,12 @@ Box* callCLFunc(CLFunction* f, CallRewriteArgs* rewrite_args, int num_output_arg
...
@@ -3847,6 +3847,12 @@ Box* callCLFunc(CLFunction* f, CallRewriteArgs* rewrite_args, int num_output_arg
return
r
;
return
r
;
}
}
// force instantiation:
template
Box
*
callCLFunc
<
CAPI
>(
CLFunction
*
f
,
CallRewriteArgs
*
rewrite_args
,
int
num_output_args
,
BoxedClosure
*
closure
,
BoxedGenerator
*
generator
,
Box
*
globals
,
Box
*
oarg1
,
Box
*
oarg2
,
Box
*
oarg3
,
Box
**
oargs
);
template
Box
*
callCLFunc
<
CXX
>(
CLFunction
*
f
,
CallRewriteArgs
*
rewrite_args
,
int
num_output_args
,
BoxedClosure
*
closure
,
BoxedGenerator
*
generator
,
Box
*
globals
,
Box
*
oarg1
,
Box
*
oarg2
,
Box
*
oarg3
,
Box
**
oargs
);
template
<
enum
ExceptionStyle
S
>
template
<
enum
ExceptionStyle
S
>
Box
*
runtimeCallInternal
(
Box
*
obj
,
CallRewriteArgs
*
rewrite_args
,
ArgPassSpec
argspec
,
Box
*
arg1
,
Box
*
arg2
,
Box
*
arg3
,
Box
*
runtimeCallInternal
(
Box
*
obj
,
CallRewriteArgs
*
rewrite_args
,
ArgPassSpec
argspec
,
Box
*
arg1
,
Box
*
arg2
,
Box
*
arg3
,
...
...
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