Skip to content

Commit

Permalink
Merged master:cb3e1dd6c31e into amd-gfx:2cb8ebf0f9e1
Browse files Browse the repository at this point in the history
Local branch amd-gfx 2cb8ebf Merged master:8889faaed0b7 into amd-gfx:4997fc11ee05
Remote branch master cb3e1dd [ARM] Add some fmin/fmax tests with commuted operands (NFC)
  • Loading branch information
Sw authored and Sw committed Sep 13, 2020
2 parents 2cb8ebf + cb3e1dd commit dda4929
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ class GCOVProfilerPass : public PassInfoMixin<GCOVProfilerPass> {
GCOVOptions GCOVOpts;
};

} // End llvm namespace
} // namespace llvm
#endif
5 changes: 3 additions & 2 deletions llvm/lib/Target/PowerPC/PPCInstrInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,9 @@ class PPCInstrInfo : public PPCGenInstrInfo {
/// Get the base operand and byte offset of an instruction that reads/writes
/// memory.
bool getMemOperandsWithOffsetWidth(
const MachineInstr &MI, SmallVectorImpl<const MachineOperand *> &BaseOps,
int64_t &Offset, bool &OffsetIsScalable, unsigned &Width,
const MachineInstr &LdSt,
SmallVectorImpl<const MachineOperand *> &BaseOps, int64_t &Offset,
bool &OffsetIsScalable, unsigned &Width,
const TargetRegisterInfo *TRI) const override;

/// Returns true if the two given memory operations should be scheduled
Expand Down
12 changes: 6 additions & 6 deletions llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ class GCOVProfiler {
public:
GCOVProfiler() : GCOVProfiler(GCOVOptions::getDefault()) {}
GCOVProfiler(const GCOVOptions &Opts) : Options(Opts) {}
bool runOnModule(Module &M,
function_ref<BlockFrequencyInfo *(Function &F)> GetBFI,
function_ref<BranchProbabilityInfo *(Function &F)> GetBPI,
function_ref<const TargetLibraryInfo &(Function &F)> GetTLI);
bool
runOnModule(Module &M, function_ref<BlockFrequencyInfo *(Function &F)> GetBFI,
function_ref<BranchProbabilityInfo *(Function &F)> GetBPI,
std::function<const TargetLibraryInfo &(Function &F)> GetTLI);

void write(uint32_t i) {
char Bytes[4];
Expand Down Expand Up @@ -609,7 +609,7 @@ std::string GCOVProfiler::mangleName(const DICompileUnit *CU,
bool GCOVProfiler::runOnModule(
Module &M, function_ref<BlockFrequencyInfo *(Function &F)> GetBFI,
function_ref<BranchProbabilityInfo *(Function &F)> GetBPI,
function_ref<const TargetLibraryInfo &(Function &F)> GetTLI) {
std::function<const TargetLibraryInfo &(Function &F)> GetTLI) {
this->M = &M;
this->GetTLI = std::move(GetTLI);
Ctx = &M.getContext();
Expand All @@ -622,7 +622,7 @@ bool GCOVProfiler::runOnModule(

FilterRe = createRegexesFromString(Options.Filter);
ExcludeRe = createRegexesFromString(Options.Exclude);
emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, GetTLI);
emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, this->GetTLI);
return true;
}

Expand Down
Loading

0 comments on commit dda4929

Please sign in to comment.