-
Notifications
You must be signed in to change notification settings - Fork 24
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
LLVM 13 #112
base: master
Are you sure you want to change the base?
LLVM 13 #112
Conversation
jacky860226
commented
Aug 20, 2021
•
edited by LFsWang
Loading
edited by LFsWang
- LLVM 12
- LLVM 13
- Fix CreateLoad warning because it is DEPRECATED for some kinds. (https://llvm.org/doxygen/classllvm_1_1IRBuilderBase.html)
- Add Wno-redundant-move ? (ref : https://reviews.llvm.org/D70963)
b131520
to
c4413c3
Compare
Codecov Report
@@ Coverage Diff @@
## master #112 +/- ##
==========================================
+ Coverage 66.47% 66.48% +0.01%
==========================================
Files 98 98
Lines 13679 13743 +64
Branches 2041 2047 +6
==========================================
+ Hits 9093 9137 +44
- Misses 3567 3585 +18
- Partials 1019 1021 +2
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging c4413c3 into ab2b60d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 833e078 into ab2b60d - view on LGTM.com new alerts:
|
833e078
to
b1ca5cf
Compare
This pull request introduces 1 alert when merging b1ca5cf into ab2b60d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 1f1b6b3 into ab2b60d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 16a788f into ab2b60d - view on LGTM.com new alerts:
|
82fe33f
to
1be0ff1
Compare
This pull request introduces 1 alert when merging 1be0ff1 into ab2b60d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging a31d805 into ab2b60d - view on LGTM.com new alerts:
|
include/soll/AST/Decl.h
Outdated
@@ -29,8 +29,7 @@ class Decl { | |||
friend class ASTReader; | |||
|
|||
protected: | |||
Decl(SourceRange L, | |||
llvm::StringRef Name = llvm::StringRef::withNullAsEmpty(nullptr), | |||
Decl(SourceRange L, llvm::StringRef Name = llvm::StringRef(""), |
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.
Decl(SourceRange L, llvm::StringRef Name = {},
lib/CodeGen/ABICodec.cpp
Outdated
@@ -49,7 +49,8 @@ llvm::Value *AbiEmitter::emitEncodeTuple( | |||
std::tie(Value, IsStateVariable) = Values[I]; | |||
if (Value->getType()->isDynamic()) { | |||
DynamicPos.emplace_back(Int8Ptr, I); | |||
Int8Ptr = Builder.CreateInBoundsGEP(Int8Ptr, {Builder.getIntN(32, 32)}); | |||
Int8Ptr = Builder.CreateInBoundsGEP(Builder.getInt8Ty(), Int8Ptr, |
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.
CGM.Int8Ty
lib/CodeGen/ABICodec.cpp
Outdated
@@ -96,7 +97,7 @@ AbiEmitter::getDecode(llvm::Value *Int8Ptr, const Type *Ty) { | |||
Builder.getIntN(32, 32)), | |||
Builder.getIntN(32, 32)); | |||
llvm::Value *NextInt8Ptr = | |||
Builder.CreateInBoundsGEP(Int8Ptr, {EncodeLength}); | |||
Builder.CreateInBoundsGEP(Builder.getInt8Ty(), Int8Ptr, {EncodeLength}); |
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.
CGM.Int8Ty
lib/CodeGen/ABICodec.cpp
Outdated
Builder.CreateInBoundsGEP(Int8Ptr, {Builder.getInt32(32)}); | ||
llvm::Value *Val = Builder.CreateLoad(ValueTy, ValPtr); | ||
llvm::Value *NextInt8Ptr = Builder.CreateInBoundsGEP( | ||
Builder.getInt8Ty(), Int8Ptr, {Builder.getInt32(32)}); |
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.
CGM.Int8Ty
lib/CodeGen/ABICodec.cpp
Outdated
Val = CGM.getEndianlessValue(Val); | ||
Val = Builder.CreateZExtOrTrunc(Val, ValueTy); | ||
llvm::Value *NextInt8Ptr = Builder.CreateInBoundsGEP( | ||
Int8Ptr, {Builder.getInt32(ValueTy->getIntegerBitWidth() / 8)}); | ||
Builder.getInt8Ty(), Int8Ptr, |
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.
CGM.Int8Ty
lib/CodeGen/CGExpr.cpp
Outdated
llvm::Value *Ptr = | ||
Builder.CreateInBoundsGEP(CGM.getHeapBase(), {Pos}, "heap.cptr"); | ||
llvm::Value *Ptr = Builder.CreateInBoundsGEP( | ||
CGM.getHeapBase()->getType()->getPointerElementType(), CGM.getHeapBase(), |
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.
CGM.Int8Ty
lib/CodeGen/CGExpr.cpp
Outdated
@@ -1015,13 +1025,15 @@ void CodeGenFunction::emitAsmSetImmutable(const CallExpr *CE) { | |||
llvm::Value *Offset = emitExpr(Arguments[0])->load(Builder, CGM); | |||
llvm::Value *TableOffset = Builder.getInt(Map.lookup(StringRefName)); | |||
llvm::Value *ImmutableCPtr = Builder.CreateInBoundsGEP( | |||
CGM.getImmutableBase()->getType()->getPointerElementType(), |
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.
CGM.Int256Ty
lib/CodeGen/CGExpr.cpp
Outdated
llvm::Value *HeapCPtr = | ||
Builder.CreateInBoundsGEP(CGM.getHeapBase(), {Offset}, "heap.cptr"); | ||
llvm::Value *HeapCPtr = Builder.CreateInBoundsGEP( | ||
CGM.getHeapBase()->getType()->getPointerElementType(), |
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.
CGM.Int8Ty
lib/CodeGen/CGExpr.cpp
Outdated
llvm::Value *HeapCPtr = | ||
Builder.CreateInBoundsGEP(CGM.getHeapBase(), {Offset}, "heap.cptr"); | ||
llvm::Value *HeapCPtr = Builder.CreateInBoundsGEP( | ||
CGM.getHeapBase()->getType()->getPointerElementType(), |
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.
CGM.Int8Ty
lib/CodeGen/CGExpr.cpp
Outdated
@@ -1044,13 +1056,17 @@ llvm::Value *CodeGenFunction::emitAsmLoadImmutable(const CallExpr *CE) { | |||
if (Map.find(StringRefName) != Map.end()) { | |||
llvm::Value *TableOffset = Builder.getInt(Map.lookup(StringRefName)); | |||
llvm::Value *ImmutableCPtr = Builder.CreateInBoundsGEP( | |||
CGM.getImmutableBase()->getType()->getPointerElementType(), |
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.
CGM.Int256Ty
a31d805
to
f0c50ea
Compare
This pull request introduces 1 alert when merging f0c50ea into ab2b60d - view on LGTM.com new alerts:
|
f0c50ea
to
b2bc554
Compare
This pull request introduces 1 alert when merging b2bc554 into dd539e0 - view on LGTM.com new alerts:
|