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
9dc01580
Commit
9dc01580
authored
Nov 19, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to llvm trunk
parent
c68ed51f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
6 deletions
+17
-6
llvm_revision.txt
llvm_revision.txt
+1
-1
src/.clang-format
src/.clang-format
+1
-0
src/Makefile
src/Makefile
+1
-1
src/runtime/capi.cpp
src/runtime/capi.cpp
+3
-1
src/runtime/types.h
src/runtime/types.h
+6
-2
tools/find_problem.py
tools/find_problem.py
+1
-1
tools/publicize.cpp
tools/publicize.cpp
+4
-0
No files found.
llvm_revision.txt
View file @
9dc01580
22
1222
22
2284
src/.clang-format
View file @
9dc01580
BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignAfterOpenBracket: true # new in clang rev 222284
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
...
...
src/Makefile
View file @
9dc01580
...
...
@@ -155,7 +155,7 @@ COMMON_LDFLAGS := -B../tools/build_system -L/usr/local/lib -lpthread -lm -lunwin
COMMON_LDFLAGS
+=
$(DEPS_DIR)
/pypa-install/lib/libpypa.a
# Conditionally add libtinfo if available - otherwise nothing will be added
COMMON_LDFLAGS
+=
`
pkg-config tinfo
&&
pkg-config tinfo
--libs
||
echo
""
`
COMMON_LDFLAGS
+=
`
pkg-config tinfo
2>/dev/null
&&
pkg-config tinfo
--libs
||
echo
""
`
# Make sure that we put all symbols in the dynamic symbol table so that MCJIT can load them;
# TODO should probably do the linking before MCJIT
...
...
src/runtime/capi.cpp
View file @
9dc01580
...
...
@@ -96,7 +96,9 @@ MAKE_CHECK(Unicode, unicode_cls)
#undef MAKE_CHECK
extern
"C"
{
int
Py_Py3kWarningFlag
;
}
extern
"C"
{
int
Py_Py3kWarningFlag
;
}
extern
"C"
PyObject
*
PyDict_New
()
{
return
new
BoxedDict
();
...
...
src/runtime/types.h
View file @
9dc01580
...
...
@@ -83,12 +83,16 @@ extern BoxedClass* object_cls, *type_cls, *bool_cls, *int_cls, *long_cls, *float
*
member_cls
,
*
method_cls
,
*
closure_cls
,
*
generator_cls
,
*
complex_cls
,
*
basestring_cls
,
*
unicode_cls
,
*
property_cls
,
*
staticmethod_cls
,
*
classmethod_cls
;
}
extern
"C"
{
extern
Box
*
None
,
*
NotImplemented
,
*
True
,
*
False
;
}
extern
"C"
{
extern
Box
*
None
,
*
NotImplemented
,
*
True
,
*
False
;
}
extern
"C"
{
extern
Box
*
repr_obj
,
*
len_obj
,
*
hash_obj
,
*
range_obj
,
*
abs_obj
,
*
min_obj
,
*
max_obj
,
*
open_obj
,
*
id_obj
,
*
chr_obj
,
*
ord_obj
,
*
trap_obj
;
}
// these are only needed for functionRepr, which is hacky
extern
"C"
{
extern
BoxedModule
*
sys_module
,
*
builtins_module
,
*
math_module
,
*
time_module
,
*
thread_module
;
}
extern
"C"
{
extern
BoxedModule
*
sys_module
,
*
builtins_module
,
*
math_module
,
*
time_module
,
*
thread_module
;
}
extern
"C"
Box
*
boxBool
(
bool
);
extern
"C"
Box
*
boxInt
(
i64
);
...
...
tools/find_problem.py
View file @
9dc01580
...
...
@@ -6,7 +6,7 @@ import sys
def
test
(
rev
,
args
):
subprocess
.
check_call
([
"make"
,
"llvm_up"
,
"USE_TEST_LLVM=1"
,
"LLVM_REVISION=%d"
%
rev
])
subprocess
.
check_call
([
"make"
,
"llvm_release"
,
"llvm_quick"
,
"USE_TEST_LLVM=1"
,
"LLVM_REVISION=%d"
%
rev
])
code
=
subprocess
.
call
([
"make"
,
"USE_TEST_LLVM=1"
,
"LLVM_REVISION=%d"
%
rev
]
+
args
)
code
=
subprocess
.
call
([
"make"
,
"USE_TEST_LLVM=1"
,
"LLVM_REVISION=%d"
%
rev
]
+
args
,
stdout
=
open
(
"%s.out"
%
rev
,
"w"
),
stderr
=
subprocess
.
STDOUT
)
return
code
==
0
def
efficiency
(
rid
):
...
...
tools/publicize.cpp
View file @
9dc01580
...
...
@@ -129,7 +129,11 @@ bool updateTBAA(Function* f) {
LLVMContext
&
c
=
f
->
getContext
();
for
(
auto
it
=
inst_begin
(
f
),
end
=
inst_end
(
f
);
it
!=
end
;
++
it
)
{
#if LLVMREV < 221024 || LLVMREV >= 221711
MDNode
*
tbaa
=
it
->
getMetadata
(
LLVMContext
::
MD_tbaa
);
#else
MDNode
*
tbaa
=
it
->
getMDNode
(
LLVMContext
::
MD_tbaa
);
#endif
if
(
!
tbaa
)
continue
;
//tbaa->dump();
...
...
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