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"
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
43 "rdf-bb-limit", cl::Hidden, cl::init(1000),
44 cl::desc("Basic block limit for a function for RDF optimizations"));
45
46static cl::opt<bool>
47 DisableHardwareLoops("disable-hexagon-hwloops", cl::Hidden,
48 cl::desc("Disable Hardware Loops for Hexagon target"));
49
50static cl::opt<bool>
51 DisableAModeOpt("disable-hexagon-amodeopt", cl::Hidden,
52 cl::desc("Disable Hexagon Addressing Mode Optimization"));
53
54static cl::opt<bool>
55 DisableHexagonCFGOpt("disable-hexagon-cfgopt", cl::Hidden,
56 cl::desc("Disable Hexagon CFG Optimization"));
57
58static cl::opt<bool>
59 DisableHCP("disable-hcp", cl::Hidden,
60 cl::desc("Disable Hexagon constant propagation"));
61
63 "disable-mask", cl::Hidden,
64 cl::desc("Disable Hexagon specific Mask generation pass"));
65
66static cl::opt<bool> DisableStoreWidening("disable-store-widen", cl::Hidden,
67 cl::init(false),
68 cl::desc("Disable store widening"));
69
70static cl::opt<bool> EnableExpandCondsets("hexagon-expand-condsets",
71 cl::init(true), cl::Hidden,
72 cl::desc("Early expansion of MUX"));
73
74static cl::opt<bool> EnableTfrCleanup("hexagon-tfr-cleanup", cl::init(true),
76 cl::desc("Cleanup of TFRs/COPYs"));
77
78static cl::opt<bool> EnableEarlyIf("hexagon-eif", cl::init(true), cl::Hidden,
79 cl::desc("Enable early if-conversion"));
80
81static cl::opt<bool> EnableCopyHoist("hexagon-copy-hoist", cl::init(true),
83 cl::desc("Enable Hexagon copy hoisting"));
84
85static cl::opt<bool>
86 EnableGenInsert("hexagon-insert", cl::init(true), cl::Hidden,
87 cl::desc("Generate \"insert\" instructions"));
88
89static cl::opt<bool>
90 EnableCommGEP("hexagon-commgep", cl::init(true), cl::Hidden,
91 cl::desc("Enable commoning of GEP instructions"));
92
93static cl::opt<bool>
94 EnableGenExtract("hexagon-extract", cl::init(true), cl::Hidden,
95 cl::desc("Generate \"extract\" instructions"));
96
98 "hexagon-mux", cl::init(true), cl::Hidden,
99 cl::desc("Enable converting conditional transfers into MUX instructions"));
100
101static cl::opt<bool>
102 EnableGenPred("hexagon-gen-pred", cl::init(true), cl::Hidden,
103 cl::desc("Enable conversion of arithmetic operations to "
104 "predicate instructions"));
105
106static cl::opt<bool>
107 EnableLoopPrefetch("hexagon-loop-prefetch", cl::Hidden,
108 cl::desc("Enable loop data prefetch on Hexagon"));
109
110static cl::opt<bool>
111 DisableHSDR("disable-hsdr", cl::init(false), cl::Hidden,
112 cl::desc("Disable splitting double registers"));
113
114static cl::opt<bool>
115 EnableGenMemAbs("hexagon-mem-abs", cl::init(true), cl::Hidden,
116 cl::desc("Generate absolute set instructions"));
117
118static cl::opt<bool> EnableBitSimplify("hexagon-bit", cl::init(true),
120 cl::desc("Bit simplification"));
121
122static cl::opt<bool> EnableLoopResched("hexagon-loop-resched", cl::init(true),
124 cl::desc("Loop rescheduling"));
125
126static cl::opt<bool> HexagonNoOpt("hexagon-noopt", cl::init(false), cl::Hidden,
127 cl::desc("Disable backend optimizations"));
128
129static cl::opt<bool>
130 EnableVectorPrint("enable-hexagon-vector-print", cl::Hidden,
131 cl::desc("Enable Hexagon Vector print instr pass"));
132
133static cl::opt<bool>
134 EnableVExtractOpt("hexagon-opt-vextract", cl::Hidden, cl::init(true),
135 cl::desc("Enable vextract optimization"));
136
137static cl::opt<bool>
138 EnableVectorCombine("hexagon-vector-combine", cl::Hidden, cl::init(true),
139 cl::desc("Enable HVX vector combining"));
140
142 "hexagon-initial-cfg-cleanup", cl::Hidden, cl::init(true),
143 cl::desc("Simplify the CFG after atomic expansion pass"));
144
145static cl::opt<bool> EnableInstSimplify("hexagon-instsimplify", cl::Hidden,
146 cl::init(true),
147 cl::desc("Enable instsimplify"));
148
149/// HexagonTargetMachineModule - Note that this is used on hosts that
150/// cannot link in a library unless there are references into the
151/// library. In particular, it seems that it is not possible to get
152/// things to work on Win32 without this. Though it is unused, do not
153/// remove it.
156
159 C, std::make_unique<HexagonConvergingVLIWScheduler>());
160 DAG->addMutation(std::make_unique<HexagonSubtarget::UsrOverflowMutation>());
161 DAG->addMutation(std::make_unique<HexagonSubtarget::HVXMemLatencyMutation>());
162 DAG->addMutation(std::make_unique<HexagonSubtarget::CallMutation>());
164 return DAG;
165}
166
168 SchedCustomRegistry("hexagon", "Run Hexagon's custom scheduler",
170
171namespace llvm {
172extern char &HexagonCopyHoistingID;
173extern char &HexagonExpandCondsetsID;
174extern char &HexagonTfrCleanupID;
200
219 CodeGenOptLevel OptLevel);
237} // namespace llvm
238
239static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) {
240 return RM.value_or(Reloc::Static);
241}
242
244 // Register the target.
246
266}
267
269 StringRef CPU, StringRef FS,
270 const TargetOptions &Options,
271 std::optional<Reloc::Model> RM,
272 std::optional<CodeModel::Model> CM,
273 CodeGenOptLevel OL, bool JIT)
274 // Specify the vector alignment explicitly. For v512x1, the calculated
275 // alignment would be 512*alignment(i1), which is 512 bytes, instead of
276 // the required minimum of 64 bytes.
278 T,
279 "e-m:e-p:32:32:32-a:0-n16:32-"
280 "i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-"
281 "v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048",
282 TT, CPU, FS, Options, getEffectiveRelocModel(RM),
283 getEffectiveCodeModel(CM, CodeModel::Small),
285 TLOF(std::make_unique<HexagonTargetObjectFile>()),
286 Subtarget(Triple(TT), CPU, FS, *this) {
291 initAsmInfo();
292}
293
294const HexagonSubtarget *
296 AttributeList FnAttrs = F.getAttributes();
297 Attribute CPUAttr = FnAttrs.getFnAttr("target-cpu");
298 Attribute FSAttr = FnAttrs.getFnAttr("target-features");
299
300 std::string CPU =
301 CPUAttr.isValid() ? CPUAttr.getValueAsString().str() : TargetCPU;
302 std::string FS =
303 FSAttr.isValid() ? FSAttr.getValueAsString().str() : TargetFS;
304 // Append the preexisting target features last, so that +mattr overrides
305 // the "unsafe-fp-math" function attribute.
306 // Creating a separate target feature is not strictly necessary, it only
307 // exists to make "unsafe-fp-math" force creating a new subtarget.
308
309 if (F.getFnAttribute("unsafe-fp-math").getValueAsBool())
310 FS = FS.empty() ? "+unsafe-fp" : "+unsafe-fp," + FS;
311
312 auto &I = SubtargetMap[CPU + FS];
313 if (!I) {
314 // This needs to be done before we create a new subtarget since any
315 // creation will depend on the TM and the code generation flags on the
316 // function that reside in TargetOptions.
318 I = std::make_unique<HexagonSubtarget>(TargetTriple, CPU, FS, *this);
319 }
320 return I.get();
321}
322
324#define GET_PASS_REGISTRY "HexagonPassRegistry.def"
326
328 [=](LoopPassManager &LPM, OptimizationLevel Level) {
330 });
332 [=](LoopPassManager &LPM, OptimizationLevel Level) {
334 });
335}
336
339 return TargetTransformInfo(HexagonTTIImpl(this, F));
340}
341
343 BumpPtrAllocator &Allocator, const Function &F,
344 const TargetSubtargetInfo *STI) const {
345 return HexagonMachineFunctionInfo::create<HexagonMachineFunctionInfo>(
346 Allocator, F, STI);
347}
348
350
351namespace {
352/// Hexagon Code Generator Pass Configuration Options.
353class HexagonPassConfig : public TargetPassConfig {
354public:
355 HexagonPassConfig(HexagonTargetMachine &TM, PassManagerBase &PM)
356 : TargetPassConfig(TM, PM) {}
357
358 HexagonTargetMachine &getHexagonTargetMachine() const {
359 return getTM<HexagonTargetMachine>();
360 }
361
363 createMachineScheduler(MachineSchedContext *C) const override {
365 }
366
367 void addIRPasses() override;
368 bool addInstSelector() override;
369 void addPreRegAlloc() override;
370 void addPostRegAlloc() override;
371 void addPreSched2() override;
372 void addPreEmitPass() override;
373};
374} // namespace
375
377 return new HexagonPassConfig(*this, PM);
378}
379
380void HexagonPassConfig::addIRPasses() {
382 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
383
384 if (!NoOpt) {
388 }
389
391
392 if (!NoOpt) {
395 .forwardSwitchCondToPhi(true)
396 .convertSwitchRangeToICmp(true)
397 .convertSwitchToLookupTable(true)
398 .needCanonicalLoops(false)
399 .hoistCommonInsts(true)
400 .sinkCommonInsts(true)));
405 if (EnableCommGEP)
406 addPass(createHexagonCommonGEP());
407 // Replace certain combinations of shifts and ands with extracts.
409 addPass(createHexagonGenExtract());
410 }
411}
412
413bool HexagonPassConfig::addInstSelector() {
414 HexagonTargetMachine &TM = getHexagonTargetMachine();
415 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
416
417 if (!NoOpt)
419
420 addPass(createHexagonISelDag(TM, getOptLevel()));
421
422 if (!NoOpt) {
424 addPass(createHexagonVExtract());
425 // Create logical operations on predicate registers.
426 if (EnableGenPred)
427 addPass(createHexagonGenPredicate());
428 // Rotate loops to expose bit-simplification opportunities.
431 // Split double registers.
432 if (!DisableHSDR)
434 // Bit simplification.
436 addPass(createHexagonBitSimplify());
437 addPass(createHexagonPeephole());
438 // Constant propagation.
439 if (!DisableHCP) {
442 }
443 if (EnableGenInsert)
444 addPass(createHexagonGenInsert());
445 if (EnableEarlyIf)
447 }
448
449 return false;
450}
451
452void HexagonPassConfig::addPreRegAlloc() {
453 if (getOptLevel() != CodeGenOptLevel::None) {
454 if (EnableCExtOpt)
458 if (EnableCopyHoist)
464 if (EnableGenMemAbs)
468 }
469 if (TM->getOptLevel() >= CodeGenOptLevel::Default)
470 addPass(&MachinePipelinerID);
471}
472
473void HexagonPassConfig::addPostRegAlloc() {
474 if (getOptLevel() != CodeGenOptLevel::None) {
475 if (EnableRDFOpt)
476 addPass(createHexagonRDFOpt());
478 addPass(createHexagonCFGOptimizer());
479 if (!DisableAModeOpt)
480 addPass(createHexagonOptAddrMode());
481 }
482}
483
484void HexagonPassConfig::addPreSched2() {
485 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
487 if (getOptLevel() != CodeGenOptLevel::None)
488 addPass(&IfConverterID);
490 if (!NoOpt && !DisableHexagonMask)
491 addPass(createHexagonMask());
492}
493
494void HexagonPassConfig::addPreEmitPass() {
495 bool NoOpt = (getOptLevel() == CodeGenOptLevel::None);
496
497 if (!NoOpt)
498 addPass(createHexagonNewValueJump());
499
501
502 if (!NoOpt) {
504 addPass(createHexagonFixupHwLoops());
505 // Generate MUX from pairs of conditional transfers.
506 if (EnableGenMux)
507 addPass(createHexagonGenMux());
508 }
509
510 // Packetization is mandatory: it handles gather/scatter at all opt levels.
511 addPass(createHexagonPacketizer(NoOpt));
512
513 if (!NoOpt)
514 addPass(createHexagonLoopAlign());
515
517 addPass(createHexagonVectorPrint());
518
519 // Add CFI instructions if necessary.
521}
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: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 > 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 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
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.
Attribute getFnAttr(Attribute::AttrKind Kind) const
Return the attribute object that exists for the function.
Definition: Attributes.h:864
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:203
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: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.
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:106
void registerLateLoopOptimizationsEPCallback(const std::function< void(LoopPassManager &, OptimizationLevel)> &C)
Register a callback for a default optimizer pipeline extension point.
Definition: PassBuilder.h:420
void registerLoopOptimizerEndEPCallback(const std::function< void(LoopPassManager &, OptimizationLevel)> &C)
Register a callback for a default optimizer pipeline extension point.
Definition: PassBuilder.h:430
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:50
std::string str() const
str - Get the contents as an std::string.
Definition: StringRef.h:215
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()
FunctionPass * createLoopDataPrefetchPass()
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:227
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,...