LLVM 18.0.0git
HexagonTargetMachine.cpp
Go to the documentation of this file.
1//===-- HexagonTargetMachine.cpp - Define TargetMachine for Hexagon -------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Implements the info about Hexagon target spec.
10//
11//===----------------------------------------------------------------------===//
12
14#include "Hexagon.h"
15#include "HexagonISelLowering.h"
23#include "llvm/CodeGen/Passes.h"
26#include "llvm/IR/Module.h"
31#include <optional>
32
33using namespace llvm;
34
35static cl::opt<bool>
36 EnableCExtOpt("hexagon-cext", cl::Hidden, cl::init(true),
37 cl::desc("Enable Hexagon constant-extender optimization"));
38
40 cl::desc("Enable RDF-based optimizations"));
41
42static cl::opt<bool> DisableHardwareLoops("disable-hexagon-hwloops",
43 cl::Hidden, cl::desc("Disable Hardware Loops for Hexagon target"));
44
45static cl::opt<bool>
46 DisableAModeOpt("disable-hexagon-amodeopt", cl::Hidden,
47 cl::desc("Disable Hexagon Addressing Mode Optimization"));
48
49static cl::opt<bool>
50 DisableHexagonCFGOpt("disable-hexagon-cfgopt", cl::Hidden,
51 cl::desc("Disable Hexagon CFG Optimization"));
52
53static cl::opt<bool>
54 DisableHCP("disable-hcp", cl::Hidden,
55 cl::desc("Disable Hexagon constant propagation"));
56
57static cl::opt<bool> DisableStoreWidening("disable-store-widen",
58 cl::Hidden, cl::init(false), cl::desc("Disable store widening"));
59
60static cl::opt<bool> EnableExpandCondsets("hexagon-expand-condsets",
61 cl::init(true), cl::Hidden,
62 cl::desc("Early expansion of MUX"));
63
64static cl::opt<bool> EnableEarlyIf("hexagon-eif", cl::init(true), cl::Hidden,
65 cl::desc("Enable early if-conversion"));
66
67static cl::opt<bool> EnableGenInsert("hexagon-insert", cl::init(true),
68 cl::Hidden, cl::desc("Generate \"insert\" instructions"));
69
70static cl::opt<bool>
71 EnableCommGEP("hexagon-commgep", cl::init(true), cl::Hidden,
72 cl::desc("Enable commoning of GEP instructions"));
73
74static cl::opt<bool> EnableGenExtract("hexagon-extract", cl::init(true),
75 cl::Hidden, cl::desc("Generate \"extract\" instructions"));
76
77static cl::opt<bool> EnableGenMux("hexagon-mux", cl::init(true), cl::Hidden,
78 cl::desc("Enable converting conditional transfers into MUX instructions"));
79
80static cl::opt<bool> EnableGenPred("hexagon-gen-pred", cl::init(true),
81 cl::Hidden, cl::desc("Enable conversion of arithmetic operations to "
82 "predicate instructions"));
83
84static cl::opt<bool>
85 EnableLoopPrefetch("hexagon-loop-prefetch", cl::Hidden,
86 cl::desc("Enable loop data prefetch on Hexagon"));
87
88static cl::opt<bool> DisableHSDR("disable-hsdr", cl::init(false), cl::Hidden,
89 cl::desc("Disable splitting double registers"));
90
91static cl::opt<bool> EnableBitSimplify("hexagon-bit", cl::init(true),
92 cl::Hidden, cl::desc("Bit simplification"));
93
94static cl::opt<bool> EnableLoopResched("hexagon-loop-resched", cl::init(true),
95 cl::Hidden, cl::desc("Loop rescheduling"));
96
97static cl::opt<bool> HexagonNoOpt("hexagon-noopt", cl::init(false),
98 cl::Hidden, cl::desc("Disable backend optimizations"));
99
100static cl::opt<bool>
101 EnableVectorPrint("enable-hexagon-vector-print", cl::Hidden,
102 cl::desc("Enable Hexagon Vector print instr pass"));
103
104static cl::opt<bool>
105 EnableVExtractOpt("hexagon-opt-vextract", cl::Hidden, cl::init(true),
106 cl::desc("Enable vextract optimization"));
107
108static cl::opt<bool>
109 EnableVectorCombine("hexagon-vector-combine", cl::Hidden, cl::init(true),
110 cl::desc("Enable HVX vector combining"));
111
113 "hexagon-initial-cfg-cleanup", cl::Hidden, cl::init(true),
114 cl::desc("Simplify the CFG after atomic expansion pass"));
115
116static cl::opt<bool> EnableInstSimplify("hexagon-instsimplify", cl::Hidden,
117 cl::init(true),
118 cl::desc("Enable instsimplify"));
119
120/// HexagonTargetMachineModule - Note that this is used on hosts that
121/// cannot link in a library unless there are references into the
122/// library. In particular, it seems that it is not possible to get
123/// things to work on Win32 without this. Though it is unused, do not
124/// remove it.
127
130 C, std::make_unique<HexagonConvergingVLIWScheduler>());
131 DAG->addMutation(std::make_unique<HexagonSubtarget::UsrOverflowMutation>());
132 DAG->addMutation(std::make_unique<HexagonSubtarget::HVXMemLatencyMutation>());
133 DAG->addMutation(std::make_unique<HexagonSubtarget::CallMutation>());
135 return DAG;
136}
137
139SchedCustomRegistry("hexagon", "Run Hexagon's custom scheduler",
141
142namespace llvm {
143 extern char &HexagonExpandCondsetsID;
163
180 CodeGenOptLevel OptLevel);
194} // end namespace llvm;
195
196static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) {
197 return RM.value_or(Reloc::Static);
198}
199
201 // Register the target.
203
222}
223
225 StringRef CPU, StringRef FS,
226 const TargetOptions &Options,
227 std::optional<Reloc::Model> RM,
228 std::optional<CodeModel::Model> CM,
229 CodeGenOptLevel OL, bool JIT)
230 // Specify the vector alignment explicitly. For v512x1, the calculated
231 // alignment would be 512*alignment(i1), which is 512 bytes, instead of
232 // the required minimum of 64 bytes.
234 T,
235 "e-m:e-p:32:32:32-a:0-n16:32-"
236 "i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-"
237 "v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048",
238 TT, CPU, FS, Options, getEffectiveRelocModel(RM),
239 getEffectiveCodeModel(CM, CodeModel::Small),
241 TLOF(std::make_unique<HexagonTargetObjectFile>()) {
243 initAsmInfo();
244}
245
246const HexagonSubtarget *
248 AttributeList FnAttrs = F.getAttributes();
249 Attribute CPUAttr =
250 FnAttrs.getFnAttr("target-cpu");
251 Attribute FSAttr =
252 FnAttrs.getFnAttr("target-features");
253
254 std::string CPU =
255 CPUAttr.isValid() ? CPUAttr.getValueAsString().str() : TargetCPU;
256 std::string FS =
257 FSAttr.isValid() ? FSAttr.getValueAsString().str() : TargetFS;
258 // Append the preexisting target features last, so that +mattr overrides
259 // the "unsafe-fp-math" function attribute.
260 // Creating a separate target feature is not strictly necessary, it only
261 // exists to make "unsafe-fp-math" force creating a new subtarget.
262
263 if (F.getFnAttribute("unsafe-fp-math").getValueAsBool())
264 FS = FS.empty() ? "+unsafe-fp" : "+unsafe-fp," + FS;
265
266 auto &I = SubtargetMap[CPU + FS];
267 if (!I) {
268 // This needs to be done before we create a new subtarget since any
269 // creation will depend on the TM and the code generation flags on the
270 // function that reside in TargetOptions.
272 I = std::make_unique<HexagonSubtarget>(TargetTriple, CPU, FS, *this);
273 }
274 return I.get();
275}
276
279 [=](LoopPassManager &LPM, OptimizationLevel Level) {
281 });
283 [=](LoopPassManager &LPM, OptimizationLevel Level) {
285 });
286}
287
290 return TargetTransformInfo(HexagonTTIImpl(this, F));
291}
292
294 BumpPtrAllocator &Allocator, const Function &F,
295 const TargetSubtargetInfo *STI) const {
296 return HexagonMachineFunctionInfo::create<HexagonMachineFunctionInfo>(
297 Allocator, F, STI);
298}
299
301
302namespace {
303/// Hexagon Code Generator Pass Configuration Options.
304class HexagonPassConfig : public TargetPassConfig {
305public:
306 HexagonPassConfig(HexagonTargetMachine &TM, PassManagerBase &PM)
307 : TargetPassConfig(TM, PM) {}
308
309 HexagonTargetMachine &getHexagonTargetMachine() const {
310 return getTM<HexagonTargetMachine>();
311 }
312
314 createMachineScheduler(MachineSchedContext *C) const override {
316 }
317
318 void addIRPasses() override;
319 bool addInstSelector() override;
320 void addPreRegAlloc() override;
321 void addPostRegAlloc() override;
322 void addPreSched2() override;
323 void addPreEmitPass() override;
324};
325} // namespace
326
328 return new HexagonPassConfig(*this, PM);
329}
330
331void HexagonPassConfig::addIRPasses() {
333 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
334
335 if (!NoOpt) {
339 }
340
341 addPass(createAtomicExpandPass());
342
343 if (!NoOpt) {
346 .forwardSwitchCondToPhi(true)
347 .convertSwitchRangeToICmp(true)
348 .convertSwitchToLookupTable(true)
349 .needCanonicalLoops(false)
350 .hoistCommonInsts(true)
351 .sinkCommonInsts(true)));
356 if (EnableCommGEP)
357 addPass(createHexagonCommonGEP());
358 // Replace certain combinations of shifts and ands with extracts.
360 addPass(createHexagonGenExtract());
361 }
362}
363
364bool HexagonPassConfig::addInstSelector() {
365 HexagonTargetMachine &TM = getHexagonTargetMachine();
366 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
367
368 if (!NoOpt)
370
371 addPass(createHexagonISelDag(TM, getOptLevel()));
372
373 if (!NoOpt) {
375 addPass(createHexagonVExtract());
376 // Create logical operations on predicate registers.
377 if (EnableGenPred)
378 addPass(createHexagonGenPredicate());
379 // Rotate loops to expose bit-simplification opportunities.
382 // Split double registers.
383 if (!DisableHSDR)
385 // Bit simplification.
387 addPass(createHexagonBitSimplify());
388 addPass(createHexagonPeephole());
389 // Constant propagation.
390 if (!DisableHCP) {
393 }
394 if (EnableGenInsert)
395 addPass(createHexagonGenInsert());
396 if (EnableEarlyIf)
398 }
399
400 return false;
401}
402
403void HexagonPassConfig::addPreRegAlloc() {
404 if (getOptLevel() != CodeGenOptLevel::None) {
405 if (EnableCExtOpt)
413 }
414 if (TM->getOptLevel() >= CodeGenOptLevel::Default)
415 addPass(&MachinePipelinerID);
416}
417
418void HexagonPassConfig::addPostRegAlloc() {
419 if (getOptLevel() != CodeGenOptLevel::None) {
420 if (EnableRDFOpt)
421 addPass(createHexagonRDFOpt());
423 addPass(createHexagonCFGOptimizer());
424 if (!DisableAModeOpt)
425 addPass(createHexagonOptAddrMode());
426 }
427}
428
429void HexagonPassConfig::addPreSched2() {
431 if (getOptLevel() != CodeGenOptLevel::None)
432 addPass(&IfConverterID);
434}
435
436void HexagonPassConfig::addPreEmitPass() {
437 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
438
439 if (!NoOpt)
440 addPass(createHexagonNewValueJump());
441
443
444 if (!NoOpt) {
446 addPass(createHexagonFixupHwLoops());
447 // Generate MUX from pairs of conditional transfers.
448 if (EnableGenMux)
449 addPass(createHexagonGenMux());
450 }
451
452 // Packetization is mandatory: it handles gather/scatter at all opt levels.
453 addPass(createHexagonPacketizer(NoOpt));
454
456 addPass(createHexagonVectorPrint());
457
458 // Add CFI instructions if necessary.
460}
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:135
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static cl::opt< bool > EnableExpandCondsets("hexagon-expand-condsets", cl::init(true), cl::Hidden, cl::desc("Early expansion of MUX"))
static cl::opt< bool > HexagonNoOpt("hexagon-noopt", cl::init(false), cl::Hidden, cl::desc("Disable backend optimizations"))
static cl::opt< bool > EnableGenExtract("hexagon-extract", cl::init(true), cl::Hidden, cl::desc("Generate \"extract\" instructions"))
static cl::opt< bool > EnableVectorCombine("hexagon-vector-combine", cl::Hidden, cl::init(true), cl::desc("Enable HVX vector combining"))
static cl::opt< bool > EnableGenMux("hexagon-mux", cl::init(true), cl::Hidden, cl::desc("Enable converting conditional transfers into MUX instructions"))
static cl::opt< bool > DisableHexagonCFGOpt("disable-hexagon-cfgopt", cl::Hidden, cl::desc("Disable Hexagon CFG Optimization"))
static cl::opt< bool > DisableAModeOpt("disable-hexagon-amodeopt", cl::Hidden, cl::desc("Disable Hexagon Addressing Mode Optimization"))
static cl::opt< bool > DisableHCP("disable-hcp", cl::Hidden, cl::desc("Disable Hexagon constant propagation"))
static cl::opt< bool > DisableStoreWidening("disable-store-widen", cl::Hidden, cl::init(false), cl::desc("Disable store widening"))
static cl::opt< bool > EnableBitSimplify("hexagon-bit", cl::init(true), cl::Hidden, cl::desc("Bit simplification"))
static cl::opt< bool > EnableVectorPrint("enable-hexagon-vector-print", cl::Hidden, cl::desc("Enable Hexagon Vector print instr pass"))
static MachineSchedRegistry SchedCustomRegistry("hexagon", "Run Hexagon's custom scheduler", createVLIWMachineSched)
static cl::opt< bool > DisableHardwareLoops("disable-hexagon-hwloops", cl::Hidden, cl::desc("Disable Hardware Loops for Hexagon target"))
static cl::opt< bool > EnableGenPred("hexagon-gen-pred", cl::init(true), cl::Hidden, cl::desc("Enable conversion of arithmetic operations to " "predicate instructions"))
static cl::opt< bool > EnableVExtractOpt("hexagon-opt-vextract", cl::Hidden, cl::init(true), cl::desc("Enable vextract optimization"))
static cl::opt< bool > EnableInstSimplify("hexagon-instsimplify", cl::Hidden, cl::init(true), cl::desc("Enable instsimplify"))
static cl::opt< bool > EnableRDFOpt("rdf-opt", cl::Hidden, cl::init(true), cl::desc("Enable RDF-based optimizations"))
static cl::opt< bool > EnableCExtOpt("hexagon-cext", cl::Hidden, cl::init(true), cl::desc("Enable Hexagon constant-extender optimization"))
static Reloc::Model getEffectiveRelocModel(std::optional< Reloc::Model > RM)
int HexagonTargetMachineModule
HexagonTargetMachineModule - Note that this is used on hosts that cannot link in a library unless the...
static cl::opt< bool > EnableLoopResched("hexagon-loop-resched", cl::init(true), cl::Hidden, cl::desc("Loop rescheduling"))
static ScheduleDAGInstrs * createVLIWMachineSched(MachineSchedContext *C)
static cl::opt< bool > DisableHSDR("disable-hsdr", cl::init(false), cl::Hidden, cl::desc("Disable splitting double registers"))
static cl::opt< bool > EnableInitialCFGCleanup("hexagon-initial-cfg-cleanup", cl::Hidden, cl::init(true), cl::desc("Simplify the CFG after atomic expansion pass"))
static cl::opt< bool > EnableLoopPrefetch("hexagon-loop-prefetch", cl::Hidden, cl::desc("Enable loop data prefetch on Hexagon"))
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeHexagonTarget()
static cl::opt< bool > EnableGenInsert("hexagon-insert", cl::init(true), cl::Hidden, cl::desc("Generate \"insert\" instructions"))
static cl::opt< bool > EnableCommGEP("hexagon-commgep", cl::init(true), cl::Hidden, cl::desc("Enable commoning of GEP instructions"))
static cl::opt< bool > EnableEarlyIf("hexagon-eif", cl::init(true), cl::Hidden, cl::desc("Enable early if-conversion"))
This file implements a TargetTransformInfo analysis pass specific to the Hexagon target machine.
static LVOptions Options
Definition: LVOptions.cpp:25
#define F(x, y, z)
Definition: MD5.cpp:55
#define I(x, y, z)
Definition: MD5.cpp:58
Module.h This file contains the declarations for the Module class.
const char LLVMTargetMachineRef TM
PassBuilder PB(Machine, PassOpts->PTO, std::nullopt, &PIC)
Basic Register Allocator
Target-Independent Code Generator Pass Configuration Options pass.
@ None
Attribute getFnAttr(Attribute::AttrKind Kind) const
Return the attribute object that exists for the function.
Definition: Attributes.h:826
StringRef getValueAsString() const
Return the attribute's value as a string.
Definition: Attributes.cpp:318
bool isValid() const
Return true if the attribute is any kind of attribute.
Definition: Attributes.h:184
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:66
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:311
MachineFunctionInfo * createMachineFunctionInfo(BumpPtrAllocator &Allocator, const Function &F, const TargetSubtargetInfo *STI) const override
Create the target's instance of MachineFunctionInfo.
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
void registerPassBuilderCallbacks(PassBuilder &PB) override
Allow the target to modify the pass pipeline.
HexagonTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, std::optional< Reloc::Model > RM, std::optional< CodeModel::Model > CM, CodeGenOptLevel OL, bool JIT)
const HexagonSubtarget * getSubtargetImpl(const Function &F) const override
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
TargetTransformInfo getTargetTransformInfo(const Function &F) const override
Get a TargetTransformInfo implementation for the target.
This class describes a target machine that is implemented with the LLVM target-independent code gener...
MachineSchedRegistry provides a selection of available machine instruction schedulers.
This class provides access to building LLVM's passes.
Definition: PassBuilder.h:103
void registerLateLoopOptimizationsEPCallback(const std::function< void(LoopPassManager &, OptimizationLevel)> &C)
Register a callback for a default optimizer pipeline extension point.
Definition: PassBuilder.h:396
void registerLoopOptimizerEndEPCallback(const std::function< void(LoopPassManager &, OptimizationLevel)> &C)
Register a callback for a default optimizer pipeline extension point.
Definition: PassBuilder.h:406
LLVM_ATTRIBUTE_MINSIZE std::enable_if_t< is_detected< HasRunOnLoopT, PassT >::value > addPass(PassT &&Pass)
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:37
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
Pass interface - Implemented by all 'passes'.
Definition: Pass.h:94
A ScheduleDAG for scheduling lists of MachineInstr.
ScheduleDAGMILive is an implementation of ScheduleDAGInstrs that schedules machine instructions while...
void addMutation(std::unique_ptr< ScheduleDAGMutation > Mutation)
Add a postprocessing step to the DAG builder.
const TargetInstrInfo * TII
Target instruction information.
Definition: ScheduleDAG.h:557
const TargetRegisterInfo * TRI
Target processor register info.
Definition: ScheduleDAG.h:558
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
std::string str() const
str - Get the contents as an std::string.
Definition: StringRef.h:222
Triple TargetTriple
Triple string, CPU name, and target feature strings the TargetMachine instance is created with.
Definition: TargetMachine.h:97
std::string TargetFS
Definition: TargetMachine.h:99
std::string TargetCPU
Definition: TargetMachine.h:98
std::unique_ptr< const MCSubtargetInfo > STI
void resetTargetOptions(const Function &F) const
Reset the target options based on the function's attributes.
Target-Independent Code Generator Pass Configuration Options.
virtual void addIRPasses()
Add common target configurable passes that perform LLVM IR to IR transforms following machine indepen...
TargetSubtargetInfo - Generic base class for all target subtargets.
This pass provides access to the codegen interfaces that are needed for IR-level transformations.
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
Extend the standard ScheduleDAGMILive to provide more context and override the top-level schedule() d...
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
Interfaces for registering analysis passes, producing common pass manager configurations,...
@ C
The default llvm calling convention, compatible with C.
Definition: CallingConv.h:34
initializer< Ty > init(const Ty &Val)
Definition: CommandLine.h:445
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
FunctionPass * createHexagonVectorPrint()
FunctionPass * createHexagonVectorCombineLegacyPass()
void initializeHexagonOptAddrModePass(PassRegistry &)
FunctionPass * createCFGSimplificationPass(SimplifyCFGOptions Options=SimplifyCFGOptions(), std::function< bool(const Function &)> Ftor=nullptr)
void initializeHexagonNewValueJumpPass(PassRegistry &)
FunctionPass * createHexagonCFGOptimizer()
void initializeHexagonVectorLoopCarriedReuseLegacyPassPass(PassRegistry &)
char & RegisterCoalescerID
RegisterCoalescer - This pass merges live ranges to eliminate copies.
void initializeHexagonSplitDoubleRegsPass(PassRegistry &)
FunctionPass * createDeadCodeEliminationPass()
Definition: DCE.cpp:178
FunctionPass * createAtomicExpandPass()
AtomicExpandPass - At IR level this pass replace atomic instructions with __atomic_* library calls,...
Pass * createHexagonLoopIdiomPass()
FunctionPass * createHexagonNewValueJump()
void initializeHexagonRDFOptPass(PassRegistry &)
FunctionPass * createHexagonBranchRelaxation()
FunctionPass * createHexagonBitSimplify()
FunctionPass * createHexagonPeephole()
FunctionPass * createHexagonConstExtenders()
FunctionPass * createHexagonConstPropagationPass()
FunctionPass * createHexagonFixupHwLoops()
void initializeHexagonDAGToDAGISelPass(PassRegistry &)
Target & getTheHexagonTarget()
void initializeHexagonExpandCondsetsPass(PassRegistry &)
void initializeHexagonPacketizerPass(PassRegistry &)
FunctionPass * createHexagonPacketizer(bool Minimal)
void initializeHexagonBitSimplifyPass(PassRegistry &Registry)
CodeModel::Model getEffectiveCodeModel(std::optional< CodeModel::Model > CM, CodeModel::Model Default)
Helper method for getting the code model, returning Default if CM does not have a value.
FunctionPass * createHexagonGenMux()
FunctionPass * createHexagonGenExtract()
FunctionPass * createHexagonEarlyIfConversion()
FunctionPass * createLoopDataPrefetchPass()
FunctionPass * createHexagonCallFrameInformation()
FunctionPass * createHexagonVExtract()
FunctionPass * createHexagonGenPredicate()
void initializeHexagonVectorCombineLegacyPass(PassRegistry &)
CodeGenOptLevel
Code generation optimization level.
Definition: CodeGen.h:54
FunctionPass * createHexagonGenInsert()
FunctionPass * createHexagonOptimizeSZextends()
FunctionPass * createHexagonLoopRescheduling()
void initializeHexagonEarlyIfConversionPass(PassRegistry &Registry)
FunctionPass * createHexagonSplitConst32AndConst64()
FunctionPass * createHexagonCopyToCombine()
char & MachinePipelinerID
This pass performs software pipelining on machine instructions.
FunctionPass * createHexagonCommonGEP()
FunctionPass * createHexagonISelDag(HexagonTargetMachine &TM, CodeGenOptLevel OptLevel)
createHexagonISelDag - This pass converts a legalized DAG into a Hexagon-specific DAG,...
char & HexagonExpandCondsetsID
FunctionPass * createHexagonOptAddrMode()
void initializeHexagonCopyToCombinePass(PassRegistry &)
void initializeHexagonLoopIdiomRecognizeLegacyPassPass(PassRegistry &)
FunctionPass * createHexagonSplitDoubleRegs()
FunctionPass * createHexagonHardwareLoops()
void initializeHexagonConstPropagationPass(PassRegistry &Registry)
char & IfConverterID
IfConverter - This pass performs machine code if conversion.
Pass * createHexagonVectorLoopCarriedReuseLegacyPass()
char & UnreachableMachineBlockElimID
UnreachableMachineBlockElimination - This pass removes unreachable machine basic blocks.
void initializeHexagonConstExtendersPass(PassRegistry &)
FunctionPass * createHexagonStoreWidening()
void initializeHexagonGenMuxPass(PassRegistry &Registry)
std::unique_ptr< ScheduleDAGMutation > createCopyConstrainDAGMutation(const TargetInstrInfo *TII, const TargetRegisterInfo *TRI)
void initializeHexagonHardwareLoopsPass(PassRegistry &)
FunctionPass * createHexagonRDFOpt()
FunctionPass * createInstSimplifyLegacyPass()
void initializeHexagonVExtractPass(PassRegistry &)
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:858
Hexagon Vector Loop Carried Reuse Pass.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
MachineSchedContext provides enough context from the MachineScheduler pass for the target to instanti...
RegisterTargetMachine - Helper template for registering a target machine implementation,...