LLVM 20.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"
30#include <optional>
31
32using namespace llvm;
33
34static cl::opt<bool>
35 EnableCExtOpt("hexagon-cext", cl::Hidden, cl::init(true),
36 cl::desc("Enable Hexagon constant-extender optimization"));
37
39 cl::desc("Enable RDF-based optimizations"));
40
42 "rdf-bb-limit", cl::Hidden, cl::init(1000),
43 cl::desc("Basic block limit for a function for RDF optimizations"));
44
45static cl::opt<bool>
46 DisableHardwareLoops("disable-hexagon-hwloops", cl::Hidden,
47 cl::desc("Disable Hardware Loops for Hexagon target"));
48
49static cl::opt<bool>
50 DisableAModeOpt("disable-hexagon-amodeopt", cl::Hidden,
51 cl::desc("Disable Hexagon Addressing Mode Optimization"));
52
53static cl::opt<bool>
54 DisableHexagonCFGOpt("disable-hexagon-cfgopt", cl::Hidden,
55 cl::desc("Disable Hexagon CFG Optimization"));
56
57static cl::opt<bool>
58 DisableHCP("disable-hcp", cl::Hidden,
59 cl::desc("Disable Hexagon constant propagation"));
60
62 "disable-mask", cl::Hidden,
63 cl::desc("Disable Hexagon specific Mask generation pass"));
64
65static cl::opt<bool> DisableStoreWidening("disable-store-widen", cl::Hidden,
66 cl::init(false),
67 cl::desc("Disable store widening"));
68
69static cl::opt<bool> DisableLoadWidening("disable-load-widen", cl::Hidden,
70 cl::desc("Disable load widening"));
71
72static cl::opt<bool> EnableExpandCondsets("hexagon-expand-condsets",
73 cl::init(true), cl::Hidden,
74 cl::desc("Early expansion of MUX"));
75
76static cl::opt<bool> EnableTfrCleanup("hexagon-tfr-cleanup", cl::init(true),
78 cl::desc("Cleanup of TFRs/COPYs"));
79
80static cl::opt<bool> EnableEarlyIf("hexagon-eif", cl::init(true), cl::Hidden,
81 cl::desc("Enable early if-conversion"));
82
83static cl::opt<bool> EnableCopyHoist("hexagon-copy-hoist", cl::init(true),
85 cl::desc("Enable Hexagon copy hoisting"));
86
87static cl::opt<bool>
88 EnableGenInsert("hexagon-insert", cl::init(true), cl::Hidden,
89 cl::desc("Generate \"insert\" instructions"));
90
91static cl::opt<bool>
92 EnableCommGEP("hexagon-commgep", cl::init(true), cl::Hidden,
93 cl::desc("Enable commoning of GEP instructions"));
94
95static cl::opt<bool>
96 EnableGenExtract("hexagon-extract", cl::init(true), cl::Hidden,
97 cl::desc("Generate \"extract\" instructions"));
98
100 "hexagon-mux", cl::init(true), cl::Hidden,
101 cl::desc("Enable converting conditional transfers into MUX instructions"));
102
103static cl::opt<bool>
104 EnableGenPred("hexagon-gen-pred", cl::init(true), cl::Hidden,
105 cl::desc("Enable conversion of arithmetic operations to "
106 "predicate instructions"));
107
108static cl::opt<bool>
109 EnableLoopPrefetch("hexagon-loop-prefetch", cl::Hidden,
110 cl::desc("Enable loop data prefetch on Hexagon"));
111
112static cl::opt<bool>
113 DisableHSDR("disable-hsdr", cl::init(false), cl::Hidden,
114 cl::desc("Disable splitting double registers"));
115
116static cl::opt<bool>
117 EnableGenMemAbs("hexagon-mem-abs", cl::init(true), cl::Hidden,
118 cl::desc("Generate absolute set instructions"));
119
120static cl::opt<bool> EnableBitSimplify("hexagon-bit", cl::init(true),
122 cl::desc("Bit simplification"));
123
124static cl::opt<bool> EnableLoopResched("hexagon-loop-resched", cl::init(true),
126 cl::desc("Loop rescheduling"));
127
128static cl::opt<bool> HexagonNoOpt("hexagon-noopt", cl::init(false), cl::Hidden,
129 cl::desc("Disable backend optimizations"));
130
131static cl::opt<bool>
132 EnableVectorPrint("enable-hexagon-vector-print", cl::Hidden,
133 cl::desc("Enable Hexagon Vector print instr pass"));
134
135static cl::opt<bool>
136 EnableVExtractOpt("hexagon-opt-vextract", cl::Hidden, cl::init(true),
137 cl::desc("Enable vextract optimization"));
138
139static cl::opt<bool>
140 EnableVectorCombine("hexagon-vector-combine", cl::Hidden, cl::init(true),
141 cl::desc("Enable HVX vector combining"));
142
144 "hexagon-initial-cfg-cleanup", cl::Hidden, cl::init(true),
145 cl::desc("Simplify the CFG after atomic expansion pass"));
146
147static cl::opt<bool> EnableInstSimplify("hexagon-instsimplify", cl::Hidden,
148 cl::init(true),
149 cl::desc("Enable instsimplify"));
150
151/// HexagonTargetMachineModule - Note that this is used on hosts that
152/// cannot link in a library unless there are references into the
153/// library. In particular, it seems that it is not possible to get
154/// things to work on Win32 without this. Though it is unused, do not
155/// remove it.
158
161 C, std::make_unique<HexagonConvergingVLIWScheduler>());
162 DAG->addMutation(std::make_unique<HexagonSubtarget::UsrOverflowMutation>());
163 DAG->addMutation(std::make_unique<HexagonSubtarget::HVXMemLatencyMutation>());
164 DAG->addMutation(std::make_unique<HexagonSubtarget::CallMutation>());
166 return DAG;
167}
168
170 SchedCustomRegistry("hexagon", "Run Hexagon's custom scheduler",
172
173namespace llvm {
174extern char &HexagonCopyHoistingID;
175extern char &HexagonExpandCondsetsID;
176extern char &HexagonTfrCleanupID;
202
221 CodeGenOptLevel OptLevel);
240} // namespace llvm
241
242static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) {
243 return RM.value_or(Reloc::Static);
244}
245
247 // Register the target.
249
269}
270
272 StringRef CPU, StringRef FS,
273 const TargetOptions &Options,
274 std::optional<Reloc::Model> RM,
275 std::optional<CodeModel::Model> CM,
276 CodeGenOptLevel OL, bool JIT)
277 // Specify the vector alignment explicitly. For v512x1, the calculated
278 // alignment would be 512*alignment(i1), which is 512 bytes, instead of
279 // the required minimum of 64 bytes.
281 T,
282 "e-m:e-p:32:32:32-a:0-n16:32-"
283 "i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-"
284 "v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048",
285 TT, CPU, FS, Options, getEffectiveRelocModel(RM),
286 getEffectiveCodeModel(CM, CodeModel::Small),
288 TLOF(std::make_unique<HexagonTargetObjectFile>()),
289 Subtarget(Triple(TT), CPU, FS, *this) {
294 initAsmInfo();
295}
296
297const HexagonSubtarget *
299 AttributeList FnAttrs = F.getAttributes();
300 Attribute CPUAttr = FnAttrs.getFnAttr("target-cpu");
301 Attribute FSAttr = FnAttrs.getFnAttr("target-features");
302
303 std::string CPU =
304 CPUAttr.isValid() ? CPUAttr.getValueAsString().str() : TargetCPU;
305 std::string FS =
306 FSAttr.isValid() ? FSAttr.getValueAsString().str() : TargetFS;
307 // Append the preexisting target features last, so that +mattr overrides
308 // the "unsafe-fp-math" function attribute.
309 // Creating a separate target feature is not strictly necessary, it only
310 // exists to make "unsafe-fp-math" force creating a new subtarget.
311
312 if (F.getFnAttribute("unsafe-fp-math").getValueAsBool())
313 FS = FS.empty() ? "+unsafe-fp" : "+unsafe-fp," + FS;
314
315 auto &I = SubtargetMap[CPU + FS];
316 if (!I) {
317 // This needs to be done before we create a new subtarget since any
318 // creation will depend on the TM and the code generation flags on the
319 // function that reside in TargetOptions.
321 I = std::make_unique<HexagonSubtarget>(TargetTriple, CPU, FS, *this);
322 }
323 return I.get();
324}
325
327#define GET_PASS_REGISTRY "HexagonPassRegistry.def"
329
331 [=](LoopPassManager &LPM, OptimizationLevel Level) {
333 });
335 [=](LoopPassManager &LPM, OptimizationLevel Level) {
337 });
338}
339
342 return TargetTransformInfo(HexagonTTIImpl(this, F));
343}
344
346 BumpPtrAllocator &Allocator, const Function &F,
347 const TargetSubtargetInfo *STI) const {
348 return HexagonMachineFunctionInfo::create<HexagonMachineFunctionInfo>(
349 Allocator, F, STI);
350}
351
353
354namespace {
355/// Hexagon Code Generator Pass Configuration Options.
356class HexagonPassConfig : public TargetPassConfig {
357public:
358 HexagonPassConfig(HexagonTargetMachine &TM, PassManagerBase &PM)
359 : TargetPassConfig(TM, PM) {}
360
361 HexagonTargetMachine &getHexagonTargetMachine() const {
362 return getTM<HexagonTargetMachine>();
363 }
364
366 createMachineScheduler(MachineSchedContext *C) const override {
368 }
369
370 void addIRPasses() override;
371 bool addInstSelector() override;
372 void addPreRegAlloc() override;
373 void addPostRegAlloc() override;
374 void addPreSched2() override;
375 void addPreEmitPass() override;
376};
377} // namespace
378
380 return new HexagonPassConfig(*this, PM);
381}
382
383void HexagonPassConfig::addIRPasses() {
385 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
386
387 if (!NoOpt) {
391 }
392
394
395 if (!NoOpt) {
398 .forwardSwitchCondToPhi(true)
399 .convertSwitchRangeToICmp(true)
400 .convertSwitchToLookupTable(true)
401 .needCanonicalLoops(false)
402 .hoistCommonInsts(true)
403 .sinkCommonInsts(true)));
408 if (EnableCommGEP)
409 addPass(createHexagonCommonGEP());
410 // Replace certain combinations of shifts and ands with extracts.
412 addPass(createHexagonGenExtract());
413 }
414}
415
416bool HexagonPassConfig::addInstSelector() {
417 HexagonTargetMachine &TM = getHexagonTargetMachine();
418 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
419
420 if (!NoOpt)
422
423 addPass(createHexagonISelDag(TM, getOptLevel()));
424
425 if (!NoOpt) {
427 addPass(createHexagonVExtract());
428 // Create logical operations on predicate registers.
429 if (EnableGenPred)
430 addPass(createHexagonGenPredicate());
431 // Rotate loops to expose bit-simplification opportunities.
434 // Split double registers.
435 if (!DisableHSDR)
437 // Bit simplification.
439 addPass(createHexagonBitSimplify());
440 addPass(createHexagonPeephole());
441 // Constant propagation.
442 if (!DisableHCP) {
445 }
446 if (EnableGenInsert)
447 addPass(createHexagonGenInsert());
448 if (EnableEarlyIf)
450 }
451
452 return false;
453}
454
455void HexagonPassConfig::addPreRegAlloc() {
456 if (getOptLevel() != CodeGenOptLevel::None) {
457 if (EnableCExtOpt)
461 if (EnableCopyHoist)
468 addPass(createHexagonLoadWidening());
469 if (EnableGenMemAbs)
473 }
474 if (TM->getOptLevel() >= CodeGenOptLevel::Default)
475 addPass(&MachinePipelinerID);
476}
477
478void HexagonPassConfig::addPostRegAlloc() {
479 if (getOptLevel() != CodeGenOptLevel::None) {
480 if (EnableRDFOpt)
481 addPass(createHexagonRDFOpt());
483 addPass(createHexagonCFGOptimizer());
484 if (!DisableAModeOpt)
485 addPass(createHexagonOptAddrMode());
486 }
487}
488
489void HexagonPassConfig::addPreSched2() {
490 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
492 if (getOptLevel() != CodeGenOptLevel::None)
493 addPass(&IfConverterID);
495 if (!NoOpt && !DisableHexagonMask)
496 addPass(createHexagonMask());
497}
498
499void HexagonPassConfig::addPreEmitPass() {
500 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
501
502 if (!NoOpt)
503 addPass(createHexagonNewValueJump());
504
506
507 if (!NoOpt) {
509 addPass(createHexagonFixupHwLoops());
510 // Generate MUX from pairs of conditional transfers.
511 if (EnableGenMux)
512 addPass(createHexagonGenMux());
513 }
514
515 // Packetization is mandatory: it handles gather/scatter at all opt levels.
516 addPass(createHexagonPacketizer(NoOpt));
517
518 if (!NoOpt)
519 addPass(createHexagonLoopAlign());
520
522 addPass(createHexagonVectorPrint());
523
524 // Add CFI instructions if necessary.
526}
static cl::opt< bool > EnableLoopPrefetch("amdgpu-loop-prefetch", cl::desc("Enable loop data prefetch on AMDGPU"), cl::Hidden, cl::init(false))
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:128
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 > EnableCopyHoist("hexagon-copy-hoist", cl::init(true), cl::Hidden, cl::ZeroOrMore, cl::desc("Enable Hexagon copy hoisting"))
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 > EnableGenMemAbs("hexagon-mem-abs", cl::init(true), cl::Hidden, cl::desc("Generate absolute set 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 cl::opt< bool > DisableLoadWidening("disable-load-widen", cl::Hidden, cl::desc("Disable load widening"))
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 > DisableHexagonMask("disable-mask", cl::Hidden, cl::desc("Disable Hexagon specific Mask generation pass"))
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 > EnableTfrCleanup("hexagon-tfr-cleanup", cl::init(true), cl::Hidden, cl::desc("Cleanup of TFRs/COPYs"))
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"))
cl::opt< unsigned > RDFFuncBlockLimit("rdf-bb-limit", cl::Hidden, cl::init(1000), cl::desc("Basic block limit for a function for RDF optimizations"))
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
PassBuilder PB(Machine, PassOpts->PTO, std::nullopt, &PIC)
Basic Register Allocator
Target-Independent Code Generator Pass Configuration Options pass.
Attribute getFnAttr(Attribute::AttrKind Kind) const
Return the attribute object that exists for the function.
Definition: Attributes.h:888
StringRef getValueAsString() const
Return the attribute's value as a string.
Definition: Attributes.cpp:392
bool isValid() const
Return true if the attribute is any kind of attribute.
Definition: Attributes.h:208
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:66
implements a set of functionality in the TargetMachine class for targets that make use of the indepen...
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:310
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.
MachineSchedRegistry provides a selection of available machine instruction schedulers.
This class provides access to building LLVM's passes.
Definition: PassBuilder.h:105
void registerLateLoopOptimizationsEPCallback(const std::function< void(LoopPassManager &, OptimizationLevel)> &C)
Register a callback for a default optimizer pipeline extension point.
Definition: PassBuilder.h:421
void registerLoopOptimizerEndEPCallback(const std::function< void(LoopPassManager &, OptimizationLevel)> &C)
Register a callback for a default optimizer pipeline extension point.
Definition: PassBuilder.h:431
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:575
const TargetRegisterInfo * TRI
Target processor register info.
Definition: ScheduleDAG.h:576
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
std::string str() const
str - Get the contents as an std::string.
Definition: StringRef.h:229
Triple TargetTriple
Triple string, CPU name, and target feature strings the TargetMachine instance is created with.
Definition: TargetMachine.h:96
std::string TargetFS
Definition: TargetMachine.h:98
std::string TargetCPU
Definition: TargetMachine.h:97
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:443
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
FunctionPass * createHexagonVectorPrint()
FunctionPass * createHexagonCopyHoisting()
FunctionPass * createHexagonVectorCombineLegacyPass()
void initializeHexagonOptAddrModePass(PassRegistry &)
FunctionPass * createCFGSimplificationPass(SimplifyCFGOptions Options=SimplifyCFGOptions(), std::function< bool(const Function &)> Ftor=nullptr)
void initializeHexagonNewValueJumpPass(PassRegistry &)
char & HexagonTfrCleanupID
FunctionPass * createHexagonCFGOptimizer()
void initializeHexagonVectorLoopCarriedReuseLegacyPassPass(PassRegistry &)
char & RegisterCoalescerID
RegisterCoalescer - This pass merges live ranges to eliminate copies.
void initializeHexagonDAGToDAGISelLegacyPass(PassRegistry &)
void initializeHexagonSplitDoubleRegsPass(PassRegistry &)
FunctionPass * createDeadCodeEliminationPass()
Definition: DCE.cpp:145
FunctionPass * createHexagonMergeActivateWeight()
Pass * createHexagonLoopIdiomPass()
FunctionPass * createHexagonNewValueJump()
void initializeHexagonRDFOptPass(PassRegistry &)
FunctionPass * createHexagonBranchRelaxation()
FunctionPass * createHexagonLoopAlign()
void initializeHexagonGenMemAbsolutePass(PassRegistry &Registry)
FunctionPass * createHexagonBitSimplify()
FunctionPass * createHexagonPeephole()
FunctionPass * createHexagonConstExtenders()
FunctionPass * createHexagonConstPropagationPass()
FunctionPass * createHexagonFixupHwLoops()
void initializeHexagonCopyHoistingPass(PassRegistry &Registry)
Target & getTheHexagonTarget()
void initializeHexagonMaskPass(PassRegistry &)
void initializeHexagonExpandCondsetsPass(PassRegistry &)
FunctionPass * createHexagonMask()
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()
@ None
Definition: CodeGenData.h:106
FunctionPass * createLoopDataPrefetchPass()
FunctionPass * createHexagonLoadWidening()
FunctionPass * createHexagonCallFrameInformation()
void initializeHexagonTfrCleanupPass(PassRegistry &)
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 &)
FunctionPass * createHexagonGenMemAbsolute()
void initializeHexagonLoopIdiomRecognizeLegacyPassPass(PassRegistry &)
char & VirtRegRewriterID
VirtRegRewriter pass.
Definition: VirtRegMap.cpp:250
FunctionPass * createHexagonTfrCleanup()
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.
FunctionPass * createAtomicExpandLegacyPass()
AtomicExpandPass - At IR level this pass replace atomic instructions with __atomic_* library calls,...
void initializeHexagonConstExtendersPass(PassRegistry &)
FunctionPass * createHexagonStoreWidening()
void initializeHexagonGenMuxPass(PassRegistry &Registry)
std::unique_ptr< ScheduleDAGMutation > createCopyConstrainDAGMutation(const TargetInstrInfo *TII, const TargetRegisterInfo *TRI)
void initializeHexagonLoopAlignPass(PassRegistry &)
void initializeHexagonMergeActivateWeightPass(PassRegistry &)
void initializeHexagonHardwareLoopsPass(PassRegistry &)
char & HexagonCopyHoistingID
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,...