You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
Demangle
ExecutionEngine
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
AArch64
AMDGPU
ARC
ARM
AVR
BPF
Hexagon
AsmParser
Disassembler
MCTargetDesc
TargetInfo
BitTracker.cpp
BitTracker.h
CMakeLists.txt
Hexagon.h
Hexagon.td
HexagonAsmPrinter.cpp
HexagonAsmPrinter.h
HexagonBitSimplify.cpp.REMOVED.git-id
HexagonBitTracker.cpp
HexagonBitTracker.h
HexagonBlockRanges.cpp
HexagonBlockRanges.h
HexagonBranchRelaxation.cpp
HexagonCFGOptimizer.cpp
HexagonCommonGEP.cpp
HexagonConstExtenders.cpp
HexagonConstPropagation.cpp
HexagonCopyToCombine.cpp
HexagonDepArch.h
HexagonDepArch.td
HexagonDepDecoders.h
HexagonDepIICHVX.td
HexagonDepIICScalar.td.REMOVED.git-id
HexagonDepITypes.h
HexagonDepITypes.td
HexagonDepInstrFormats.td
HexagonDepInstrInfo.td.REMOVED.git-id
HexagonDepMappings.td
HexagonDepOperands.td
HexagonDepTimingClasses.h
HexagonEarlyIfConv.cpp
HexagonExpandCondsets.cpp
HexagonFixupHwLoops.cpp
HexagonFrameLowering.cpp
HexagonFrameLowering.h
HexagonGatherPacketize.cpp
HexagonGenExtract.cpp
HexagonGenInsert.cpp
HexagonGenMux.cpp
HexagonGenPredicate.cpp
HexagonHardwareLoops.cpp
HexagonHazardRecognizer.cpp
HexagonHazardRecognizer.h
HexagonIICHVX.td
HexagonIICScalar.td
HexagonISelDAGToDAG.cpp
HexagonISelDAGToDAG.h
HexagonISelDAGToDAGHVX.cpp
HexagonISelLowering.cpp.REMOVED.git-id
HexagonISelLowering.h
HexagonISelLoweringHVX.cpp
HexagonInstrFormats.td
HexagonInstrFormatsV4.td
HexagonInstrFormatsV60.td
HexagonInstrFormatsV65.td
HexagonInstrInfo.cpp.REMOVED.git-id
HexagonInstrInfo.h
HexagonIntrinsics.td
HexagonIntrinsicsV3.td
HexagonIntrinsicsV4.td
HexagonIntrinsicsV5.td
HexagonIntrinsicsV60.td
HexagonLoopIdiomRecognition.cpp
HexagonMCInstLower.cpp
HexagonMachineFunctionInfo.cpp
HexagonMachineFunctionInfo.h
HexagonMachineScheduler.cpp
HexagonMachineScheduler.h
HexagonMapAsm2IntrinV62.gen.td
HexagonMapAsm2IntrinV65.gen.td
HexagonNewValueJump.cpp
HexagonOperands.td
HexagonOptAddrMode.cpp
HexagonOptimizeSZextends.cpp
HexagonPatterns.td.REMOVED.git-id
HexagonPatternsV65.td
HexagonPeephole.cpp
HexagonPseudo.td
HexagonRDFOpt.cpp
HexagonRegisterInfo.cpp
HexagonRegisterInfo.h
HexagonRegisterInfo.td
HexagonSchedule.td
HexagonScheduleV4.td
HexagonScheduleV55.td
HexagonScheduleV60.td
HexagonScheduleV62.td
HexagonScheduleV65.td
HexagonSelectionDAGInfo.cpp
HexagonSelectionDAGInfo.h
HexagonSplitConst32AndConst64.cpp
HexagonSplitDouble.cpp
HexagonStoreWidening.cpp
HexagonSubtarget.cpp
HexagonSubtarget.h
HexagonTargetMachine.cpp
HexagonTargetMachine.h
HexagonTargetObjectFile.cpp
HexagonTargetObjectFile.h
HexagonTargetStreamer.h
HexagonTargetTransformInfo.cpp
HexagonTargetTransformInfo.h
HexagonVLIWPacketizer.cpp
HexagonVLIWPacketizer.h
HexagonVectorLoopCarriedReuse.cpp
HexagonVectorPrint.cpp
LLVMBuild.txt
RDFCopy.cpp
RDFCopy.h
RDFDeadCode.cpp
RDFDeadCode.h
RDFGraph.cpp
RDFGraph.h
RDFLiveness.cpp
RDFLiveness.h
RDFRegisters.cpp
RDFRegisters.h
Lanai
MSP430
Mips
NVPTX
Nios2
PowerPC
RISCV
Sparc
SystemZ
WebAssembly
X86
XCore
CMakeLists.txt
LLVMBuild.txt
README.txt
Target.cpp
TargetIntrinsicInfo.cpp
TargetLoweringObjectFile.cpp
TargetMachine.cpp
TargetMachineC.cpp
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
version.txt.in
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
63 lines
1.6 KiB
C
63 lines
1.6 KiB
C
![]() |
//===- RDFCopy.h ------------------------------------------------*- C++ -*-===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef LLVM_LIB_TARGET_HEXAGON_RDFCOPY_H
|
||
|
#define LLVM_LIB_TARGET_HEXAGON_RDFCOPY_H
|
||
|
|
||
|
#include "RDFGraph.h"
|
||
|
#include "RDFLiveness.h"
|
||
|
#include "RDFRegisters.h"
|
||
|
#include "llvm/CodeGen/MachineFunction.h"
|
||
|
#include <map>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace llvm {
|
||
|
|
||
|
class MachineBasicBlock;
|
||
|
class MachineDominatorTree;
|
||
|
class MachineInstr;
|
||
|
|
||
|
namespace rdf {
|
||
|
|
||
|
struct CopyPropagation {
|
||
|
CopyPropagation(DataFlowGraph &dfg) : MDT(dfg.getDT()), DFG(dfg),
|
||
|
L(dfg.getMF().getRegInfo(), dfg) {}
|
||
|
|
||
|
virtual ~CopyPropagation() = default;
|
||
|
|
||
|
bool run();
|
||
|
void trace(bool On) { Trace = On; }
|
||
|
bool trace() const { return Trace; }
|
||
|
DataFlowGraph &getDFG() { return DFG; }
|
||
|
|
||
|
using EqualityMap = std::map<RegisterRef, RegisterRef>;
|
||
|
|
||
|
virtual bool interpretAsCopy(const MachineInstr *MI, EqualityMap &EM);
|
||
|
|
||
|
private:
|
||
|
const MachineDominatorTree &MDT;
|
||
|
DataFlowGraph &DFG;
|
||
|
Liveness L;
|
||
|
bool Trace = false;
|
||
|
|
||
|
// map: statement -> (map: dst reg -> src reg)
|
||
|
std::map<NodeId, EqualityMap> CopyMap;
|
||
|
std::vector<NodeId> Copies;
|
||
|
|
||
|
void recordCopy(NodeAddr<StmtNode*> SA, EqualityMap &EM);
|
||
|
bool scanBlock(MachineBasicBlock *B);
|
||
|
NodeId getLocalReachingDef(RegisterRef RefRR, NodeAddr<InstrNode*> IA);
|
||
|
};
|
||
|
|
||
|
} // end namespace rdf
|
||
|
|
||
|
} // end namespace llvm
|
||
|
|
||
|
#endif // LLVM_LIB_TARGET_HEXAGON_RDFCOPY_H
|