mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[llvm-exegesis][NFC] clang-format
llvm-svn: 335452
This commit is contained in:
parent
a32d0bc533
commit
30b11759a0
@ -91,8 +91,8 @@ BenchmarkRunner::runOne(const BenchmarkConfiguration &Configuration,
|
||||
// that the inside instructions are repeated.
|
||||
constexpr const int kMinInstructionsForSnippet = 16;
|
||||
{
|
||||
auto ObjectFilePath = writeObjectFile(
|
||||
GenerateInstructions(kMinInstructionsForSnippet));
|
||||
auto ObjectFilePath =
|
||||
writeObjectFile(GenerateInstructions(kMinInstructionsForSnippet));
|
||||
if (llvm::Error E = ObjectFilePath.takeError()) {
|
||||
InstrBenchmark.Error = llvm::toString(std::move(E));
|
||||
return InstrBenchmark;
|
||||
@ -105,8 +105,8 @@ BenchmarkRunner::runOne(const BenchmarkConfiguration &Configuration,
|
||||
|
||||
// Assemble NumRepetitions instructions repetitions of the snippet for
|
||||
// measurements.
|
||||
auto ObjectFilePath = writeObjectFile(
|
||||
GenerateInstructions(InstrBenchmark.NumRepetitions));
|
||||
auto ObjectFilePath =
|
||||
writeObjectFile(GenerateInstructions(InstrBenchmark.NumRepetitions));
|
||||
if (llvm::Error E = ObjectFilePath.takeError()) {
|
||||
InstrBenchmark.Error = llvm::toString(std::move(E));
|
||||
return InstrBenchmark;
|
||||
|
@ -86,8 +86,7 @@ Instruction::Instruction(const llvm::MCInstrDesc &MCInstrDesc,
|
||||
InstructionInstance::InstructionInstance(const Instruction &Instr)
|
||||
: Instr(Instr), VariableValues(Instr.Variables.size()) {}
|
||||
|
||||
InstructionInstance::InstructionInstance(InstructionInstance &&) =
|
||||
default;
|
||||
InstructionInstance::InstructionInstance(InstructionInstance &&) = default;
|
||||
|
||||
InstructionInstance &InstructionInstance::
|
||||
operator=(InstructionInstance &&) = default;
|
||||
@ -135,8 +134,7 @@ llvm::MCInst InstructionInstance::randomizeUnsetVariablesAndBuild() {
|
||||
|
||||
SnippetPrototype::SnippetPrototype(SnippetPrototype &&) = default;
|
||||
|
||||
SnippetPrototype &SnippetPrototype::
|
||||
operator=(SnippetPrototype &&) = default;
|
||||
SnippetPrototype &SnippetPrototype::operator=(SnippetPrototype &&) = default;
|
||||
|
||||
bool RegisterOperandAssignment::
|
||||
operator==(const RegisterOperandAssignment &Other) const {
|
||||
|
@ -97,7 +97,8 @@ UopsBenchmarkRunner::isInfeasible(const llvm::MCInstrDesc &MCInstrDesc) const {
|
||||
return llvm::make_error<BenchmarkFailure>(
|
||||
"Infeasible : has unknown operands");
|
||||
if (llvm::any_of(MCInstrDesc.operands(), hasMemoryOperand))
|
||||
return llvm::make_error<BenchmarkFailure>("Infeasible : has memory operands");
|
||||
return llvm::make_error<BenchmarkFailure>(
|
||||
"Infeasible : has memory operands");
|
||||
return llvm::Error::success();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user