mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 06:38:44 +00:00
Fix -Wextra-semi warnings.
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D11400 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9db135a5f1
commit
380de5479c
@ -190,7 +190,7 @@ public:
|
|||||||
|
|
||||||
Function &getFunction() const {
|
Function &getFunction() const {
|
||||||
return F;
|
return F;
|
||||||
};
|
}
|
||||||
|
|
||||||
iterator begin() const {
|
iterator begin() const {
|
||||||
return iterator(*G, Callees.begin(), Callees.end());
|
return iterator(*G, Callees.begin(), Callees.end());
|
||||||
|
@ -201,13 +201,13 @@ public:
|
|||||||
}
|
}
|
||||||
bool isFunctionVectorizable(StringRef F, unsigned VF) const {
|
bool isFunctionVectorizable(StringRef F, unsigned VF) const {
|
||||||
return Impl->isFunctionVectorizable(F, VF);
|
return Impl->isFunctionVectorizable(F, VF);
|
||||||
};
|
}
|
||||||
bool isFunctionVectorizable(StringRef F) const {
|
bool isFunctionVectorizable(StringRef F) const {
|
||||||
return Impl->isFunctionVectorizable(F);
|
return Impl->isFunctionVectorizable(F);
|
||||||
};
|
}
|
||||||
StringRef getVectorizedFunction(StringRef F, unsigned VF) const {
|
StringRef getVectorizedFunction(StringRef F, unsigned VF) const {
|
||||||
return Impl->getVectorizedFunction(F, VF);
|
return Impl->getVectorizedFunction(F, VF);
|
||||||
};
|
}
|
||||||
|
|
||||||
/// \brief Tests if the function is both available and a candidate for
|
/// \brief Tests if the function is both available and a candidate for
|
||||||
/// optimized code generation.
|
/// optimized code generation.
|
||||||
|
@ -159,7 +159,7 @@ namespace llvm {
|
|||||||
BitcodeDiagnosticInfo(std::error_code EC, DiagnosticSeverity Severity,
|
BitcodeDiagnosticInfo(std::error_code EC, DiagnosticSeverity Severity,
|
||||||
const Twine &Msg);
|
const Twine &Msg);
|
||||||
void print(DiagnosticPrinter &DP) const override;
|
void print(DiagnosticPrinter &DP) const override;
|
||||||
std::error_code getError() const { return EC; };
|
std::error_code getError() const { return EC; }
|
||||||
|
|
||||||
static bool classof(const DiagnosticInfo *DI) {
|
static bool classof(const DiagnosticInfo *DI) {
|
||||||
return DI->getKind() == DK_Bitcode;
|
return DI->getKind() == DK_Bitcode;
|
||||||
|
@ -915,7 +915,7 @@ public:
|
|||||||
MachineBasicBlock::iterator End,
|
MachineBasicBlock::iterator End,
|
||||||
unsigned NumRegionInstrs) override {
|
unsigned NumRegionInstrs) override {
|
||||||
/* no configurable policy */
|
/* no configurable policy */
|
||||||
};
|
}
|
||||||
|
|
||||||
/// PostRA scheduling does not track pressure.
|
/// PostRA scheduling does not track pressure.
|
||||||
bool shouldTrackPressure() const override { return false; }
|
bool shouldTrackPressure() const override { return false; }
|
||||||
|
@ -374,7 +374,7 @@ namespace llvm {
|
|||||||
/// correspond to schedulable entities (e.g. instructions) and do not have a
|
/// correspond to schedulable entities (e.g. instructions) and do not have a
|
||||||
/// valid ID. Consequently, always check for boundary nodes before accessing
|
/// valid ID. Consequently, always check for boundary nodes before accessing
|
||||||
/// an assoicative data structure keyed on node ID.
|
/// an assoicative data structure keyed on node ID.
|
||||||
bool isBoundaryNode() const { return NodeNum == BoundaryID; };
|
bool isBoundaryNode() const { return NodeNum == BoundaryID; }
|
||||||
|
|
||||||
/// setNode - Assign the representative SDNode for this SUnit.
|
/// setNode - Assign the representative SDNode for this SUnit.
|
||||||
/// This may be used during pre-regalloc scheduling.
|
/// This may be used during pre-regalloc scheduling.
|
||||||
|
@ -481,7 +481,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){};
|
ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){}
|
||||||
explicit ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M);
|
explicit ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M);
|
||||||
explicit ExecutionEngine(std::unique_ptr<Module> M);
|
explicit ExecutionEngine(std::unique_ptr<Module> M);
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ public:
|
|||||||
/// \brief Memory Management.
|
/// \brief Memory Management.
|
||||||
class MemoryManager {
|
class MemoryManager {
|
||||||
public:
|
public:
|
||||||
virtual ~MemoryManager() {};
|
virtual ~MemoryManager() {}
|
||||||
|
|
||||||
/// Allocate a memory block of (at least) the given size suitable for
|
/// Allocate a memory block of (at least) the given size suitable for
|
||||||
/// executable code. The SectionID is a unique identifier assigned by the
|
/// executable code. The SectionID is a unique identifier assigned by the
|
||||||
@ -149,7 +149,7 @@ public:
|
|||||||
/// \brief Symbol resolution.
|
/// \brief Symbol resolution.
|
||||||
class SymbolResolver {
|
class SymbolResolver {
|
||||||
public:
|
public:
|
||||||
virtual ~SymbolResolver() {};
|
virtual ~SymbolResolver() {}
|
||||||
|
|
||||||
/// This method returns the address of the specified function or variable.
|
/// This method returns the address of the specified function or variable.
|
||||||
/// It is used to resolve symbols during module linking.
|
/// It is used to resolve symbols during module linking.
|
||||||
|
@ -67,8 +67,8 @@ public:
|
|||||||
|
|
||||||
operator Metadata *() const { return const_cast<Metadata *>(MD); }
|
operator Metadata *() const { return const_cast<Metadata *>(MD); }
|
||||||
|
|
||||||
bool operator==(const TypedDINodeRef<T> &X) const { return MD == X.MD; };
|
bool operator==(const TypedDINodeRef<T> &X) const { return MD == X.MD; }
|
||||||
bool operator!=(const TypedDINodeRef<T> &X) const { return MD != X.MD; };
|
bool operator!=(const TypedDINodeRef<T> &X) const { return MD != X.MD; }
|
||||||
|
|
||||||
/// \brief Create a reference.
|
/// \brief Create a reference.
|
||||||
///
|
///
|
||||||
|
@ -63,7 +63,7 @@ protected:
|
|||||||
raw_ostream &Stream;
|
raw_ostream &Stream;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {};
|
DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {}
|
||||||
|
|
||||||
// Simple types.
|
// Simple types.
|
||||||
DiagnosticPrinter &operator<<(char C) override;
|
DiagnosticPrinter &operator<<(char C) override;
|
||||||
|
@ -160,7 +160,7 @@ class MCLOHContainer {
|
|||||||
public:
|
public:
|
||||||
typedef SmallVectorImpl<MCLOHDirective> LOHDirectives;
|
typedef SmallVectorImpl<MCLOHDirective> LOHDirectives;
|
||||||
|
|
||||||
MCLOHContainer() : EmitSize(0) {};
|
MCLOHContainer() : EmitSize(0) {}
|
||||||
|
|
||||||
/// Const accessor to the directives.
|
/// Const accessor to the directives.
|
||||||
const LOHDirectives &getDirectives() const {
|
const LOHDirectives &getDirectives() const {
|
||||||
|
@ -198,7 +198,7 @@ public:
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void onLabelParsed(MCSymbol *Symbol) { };
|
virtual void onLabelParsed(MCSymbol *Symbol) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
@ -6731,7 +6731,7 @@ ScalarEvolution::isLoopBackedgeGuardedByCond(const Loop *L,
|
|||||||
ScalarEvolution &SE;
|
ScalarEvolution &SE;
|
||||||
|
|
||||||
explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE)
|
explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE)
|
||||||
: SE(SE){};
|
: SE(SE){}
|
||||||
|
|
||||||
~ClearWalkingBEDominatingCondsOnExit() {
|
~ClearWalkingBEDominatingCondsOnExit() {
|
||||||
SE.WalkingBEDominatingConds = false;
|
SE.WalkingBEDominatingConds = false;
|
||||||
|
@ -290,7 +290,7 @@ private:
|
|||||||
"Incorrect number of Infos for Objects.");
|
"Incorrect number of Infos for Objects.");
|
||||||
for (unsigned I = 0; I < Objects.size(); ++I)
|
for (unsigned I = 0; I < Objects.size(); ++I)
|
||||||
M.MemMgr.notifyObjectLoaded(&M, *Objects[I]);
|
M.MemMgr.notifyObjectLoaded(&M, *Objects[I]);
|
||||||
};
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
OrcMCJITReplacement &M;
|
OrcMCJITReplacement &M;
|
||||||
|
@ -49,7 +49,7 @@ struct PassRemarksOpt {
|
|||||||
"' in -pass-remarks: " + RegexError,
|
"' in -pass-remarks: " + RegexError,
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static PassRemarksOpt PassRemarksOptLoc;
|
static PassRemarksOpt PassRemarksOptLoc;
|
||||||
|
@ -54,7 +54,7 @@ private:
|
|||||||
struct CallContext {
|
struct CallContext {
|
||||||
CallContext()
|
CallContext()
|
||||||
: Call(nullptr), SPCopy(nullptr), ExpectedDist(0),
|
: Call(nullptr), SPCopy(nullptr), ExpectedDist(0),
|
||||||
MovVector(4, nullptr), NoStackParams(false), UsePush(false){};
|
MovVector(4, nullptr), NoStackParams(false), UsePush(false){}
|
||||||
|
|
||||||
// Actuall call instruction
|
// Actuall call instruction
|
||||||
MachineInstr *Call;
|
MachineInstr *Call;
|
||||||
|
@ -100,7 +100,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
X86MachineFunctionInfo() = default;
|
X86MachineFunctionInfo() = default;
|
||||||
|
|
||||||
explicit X86MachineFunctionInfo(MachineFunction &MF) {};
|
explicit X86MachineFunctionInfo(MachineFunction &MF) {}
|
||||||
|
|
||||||
bool getForceFramePointer() const { return ForceFramePointer;}
|
bool getForceFramePointer() const { return ForceFramePointer;}
|
||||||
void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
|
void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
|
||||||
|
@ -506,7 +506,7 @@ private:
|
|||||||
/// This POD struct describes one external user in the vectorized tree.
|
/// This POD struct describes one external user in the vectorized tree.
|
||||||
struct ExternalUser {
|
struct ExternalUser {
|
||||||
ExternalUser (Value *S, llvm::User *U, int L) :
|
ExternalUser (Value *S, llvm::User *U, int L) :
|
||||||
Scalar(S), User(U), Lane(L){};
|
Scalar(S), User(U), Lane(L){}
|
||||||
// Which scalar in our function.
|
// Which scalar in our function.
|
||||||
Value *Scalar;
|
Value *Scalar;
|
||||||
// Which user that uses the scalar.
|
// Which user that uses the scalar.
|
||||||
|
Loading…
Reference in New Issue
Block a user