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
68a74ef9
Commit
68a74ef9
authored
Oct 10, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix embedding of constant ints
Allow 64-bit constants. not sure how we didn't run into this before
parent
e5db59e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/codegen/irgen/util.cpp
src/codegen/irgen/util.cpp
+2
-2
src/codegen/irgen/util.h
src/codegen/irgen/util.h
+2
-2
No files found.
src/codegen/irgen/util.cpp
View file @
68a74ef9
...
...
@@ -99,11 +99,11 @@ llvm::Constant* embedConstantPtr(const void* addr, llvm::Type* type) {
return
ptr_val
;
}
llvm
::
Constant
*
getConstantInt
(
int
n
,
llvm
::
Type
*
t
)
{
llvm
::
Constant
*
getConstantInt
(
int
64_t
n
,
llvm
::
Type
*
t
)
{
return
llvm
::
ConstantInt
::
get
(
t
,
n
);
}
llvm
::
Constant
*
getConstantInt
(
int
n
)
{
llvm
::
Constant
*
getConstantInt
(
int
64_t
n
)
{
return
getConstantInt
(
n
,
g
.
i64
);
}
...
...
src/codegen/irgen/util.h
View file @
68a74ef9
...
...
@@ -28,9 +28,9 @@ namespace pyston {
llvm
::
Constant
*
getStringConstantPtr
(
const
std
::
string
&
str
);
llvm
::
Constant
*
getStringConstantPtr
(
const
char
*
str
);
llvm
::
Constant
*
embedConstantPtr
(
const
void
*
addr
,
llvm
::
Type
*
);
llvm
::
Constant
*
getConstantInt
(
int
val
);
llvm
::
Constant
*
getConstantInt
(
int
64_t
val
);
llvm
::
Constant
*
getConstantDouble
(
double
val
);
llvm
::
Constant
*
getConstantInt
(
int
val
,
llvm
::
Type
*
);
llvm
::
Constant
*
getConstantInt
(
int
64_t
val
,
llvm
::
Type
*
);
void
dumpPrettyIR
(
llvm
::
Function
*
f
);
}
...
...
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