-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 628 - Type Shrinkage and Memory Alignment #630
Conversation
…type extremely Addresses #628.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Could you do a pass to observe code conventions like if-clause formatting and whitespace?
Addresses #628.
I reformated the files by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Please make all code follows the coding conventions as specified in https://github.com/phillipstanleymarbell/Noisy-lang-compiler/blob/master/README-CodingConventions.md.
sourceOperand->getType()->isIntegerTy()) | ||
{ | ||
// float fa = (float)ia; | ||
bool isSinged = sourceInst->getOpcode() == Instruction::SIToFP; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be isSigned
instead of isSinged
?
@@ -44,6 +44,7 @@ | |||
#include <cmath> | |||
#include <float.h> | |||
#include <limits> | |||
#include <math.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this suddenly included here?
@@ -245,7 +247,7 @@ getTypeInfo(State * N, Value * inValue, | |||
switch (inInstType->getTypeID()) | |||
{ | |||
case Type::IntegerTyID: | |||
typeInformation = getShrinkIntType(N, inValue, vrRangeIt->second); | |||
typeInformation = getShrinkIntType(N, inValue, vrRangeIt->second); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a mismatched indentation. Please also use brackets with switch cases.
The code base is super different. I merge the code manually. |
A PR for issue 628.
In this PR, I'm going to implement the type shrinkage with memory alignment.