[PATCH] D148089: [clang][CodeGen] Break up TargetInfo.cpp [1/6]
Sergei Barannikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 29 09:50:32 PDT 2023
barannikov88 updated this revision to Diff 518188.
barannikov88 added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148089/new/
https://reviews.llvm.org/D148089
Files:
clang/lib/CodeGen/TargetInfo.cpp
Index: clang/lib/CodeGen/TargetInfo.cpp
===================================================================
--- clang/lib/CodeGen/TargetInfo.cpp
+++ clang/lib/CodeGen/TargetInfo.cpp
@@ -9072,13 +9072,17 @@
namespace {
class LanaiABIInfo : public DefaultABIInfo {
+ struct CCState {
+ unsigned FreeRegs;
+ };
+
public:
LanaiABIInfo(CodeGen::CodeGenTypes &CGT) : DefaultABIInfo(CGT) {}
bool shouldUseInReg(QualType Ty, CCState &State) const;
void computeInfo(CGFunctionInfo &FI) const override {
- CCState State(FI);
+ CCState State;
// Lanai uses 4 registers to pass arguments unless the function has the
// regparm attribute set.
if (FI.getHasRegParm()) {
@@ -10090,6 +10094,10 @@
namespace {
class ARCABIInfo : public DefaultABIInfo {
+ struct CCState {
+ unsigned FreeRegs;
+ };
+
public:
using DefaultABIInfo::DefaultABIInfo;
@@ -10112,7 +10120,7 @@
}
void computeInfo(CGFunctionInfo &FI) const override {
- CCState State(FI);
+ CCState State;
// ARC uses 8 registers to pass arguments.
State.FreeRegs = 8;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148089.518188.patch
Type: text/x-patch
Size: 1095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230429/82089775/attachment.bin>
More information about the cfe-commits
mailing list