Passes.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- Passes.h - Target independent code generation passes ----*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // This file defines interfaces to access the target independent code generation
  15. // passes provided by the LLVM backend.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CODEGEN_PASSES_H
  19. #define LLVM_CODEGEN_PASSES_H
  20. #include "llvm/Support/CodeGen.h"
  21. #include "llvm/Support/Discriminator.h"
  22. #include "llvm/CodeGen/RegAllocCommon.h"
  23. #include <functional>
  24. #include <string>
  25. namespace llvm {
  26. class FunctionPass;
  27. class MachineFunction;
  28. class MachineFunctionPass;
  29. class MemoryBuffer;
  30. class ModulePass;
  31. class Pass;
  32. class TargetMachine;
  33. class raw_ostream;
  34. } // End llvm namespace
  35. // List of target independent CodeGen pass IDs.
  36. namespace llvm {
  37. /// AtomicExpandPass - At IR level this pass replace atomic instructions with
  38. /// __atomic_* library calls, or target specific instruction which implement the
  39. /// same semantics in a way which better fits the target backend.
  40. FunctionPass *createAtomicExpandPass();
  41. /// createUnreachableBlockEliminationPass - The LLVM code generator does not
  42. /// work well with unreachable basic blocks (what live ranges make sense for a
  43. /// block that cannot be reached?). As such, a code generator should either
  44. /// not instruction select unreachable blocks, or run this pass as its
  45. /// last LLVM modifying pass to clean up blocks that are not reachable from
  46. /// the entry block.
  47. FunctionPass *createUnreachableBlockEliminationPass();
  48. /// createBasicBlockSections Pass - This pass assigns sections to machine
  49. /// basic blocks and is enabled with -fbasic-block-sections. Buf is a memory
  50. /// buffer that contains the list of functions and basic block ids to
  51. /// selectively enable basic block sections.
  52. MachineFunctionPass *createBasicBlockSectionsPass(const MemoryBuffer *Buf);
  53. /// createMachineFunctionSplitterPass - This pass splits machine functions
  54. /// using profile information.
  55. MachineFunctionPass *createMachineFunctionSplitterPass();
  56. /// MachineFunctionPrinter pass - This pass prints out the machine function to
  57. /// the given stream as a debugging tool.
  58. MachineFunctionPass *
  59. createMachineFunctionPrinterPass(raw_ostream &OS,
  60. const std::string &Banner ="");
  61. /// MIRPrinting pass - this pass prints out the LLVM IR into the given stream
  62. /// using the MIR serialization format.
  63. MachineFunctionPass *createPrintMIRPass(raw_ostream &OS);
  64. /// This pass resets a MachineFunction when it has the FailedISel property
  65. /// as if it was just created.
  66. /// If EmitFallbackDiag is true, the pass will emit a
  67. /// DiagnosticInfoISelFallback for every MachineFunction it resets.
  68. /// If AbortOnFailedISel is true, abort compilation instead of resetting.
  69. MachineFunctionPass *createResetMachineFunctionPass(bool EmitFallbackDiag,
  70. bool AbortOnFailedISel);
  71. /// createCodeGenPreparePass - Transform the code to expose more pattern
  72. /// matching during instruction selection.
  73. FunctionPass *createCodeGenPreparePass();
  74. /// AtomicExpandID -- Lowers atomic operations in terms of either cmpxchg
  75. /// load-linked/store-conditional loops.
  76. extern char &AtomicExpandID;
  77. /// MachineLoopInfo - This pass is a loop analysis pass.
  78. extern char &MachineLoopInfoID;
  79. /// MachineDominators - This pass is a machine dominators analysis pass.
  80. extern char &MachineDominatorsID;
  81. /// MachineDominanaceFrontier - This pass is a machine dominators analysis.
  82. extern char &MachineDominanceFrontierID;
  83. /// MachineRegionInfo - This pass computes SESE regions for machine functions.
  84. extern char &MachineRegionInfoPassID;
  85. /// EdgeBundles analysis - Bundle machine CFG edges.
  86. extern char &EdgeBundlesID;
  87. /// LiveVariables pass - This pass computes the set of blocks in which each
  88. /// variable is life and sets machine operand kill flags.
  89. extern char &LiveVariablesID;
  90. /// PHIElimination - This pass eliminates machine instruction PHI nodes
  91. /// by inserting copy instructions. This destroys SSA information, but is the
  92. /// desired input for some register allocators. This pass is "required" by
  93. /// these register allocator like this: AU.addRequiredID(PHIEliminationID);
  94. extern char &PHIEliminationID;
  95. /// LiveIntervals - This analysis keeps track of the live ranges of virtual
  96. /// and physical registers.
  97. extern char &LiveIntervalsID;
  98. /// LiveStacks pass. An analysis keeping track of the liveness of stack slots.
  99. extern char &LiveStacksID;
  100. /// TwoAddressInstruction - This pass reduces two-address instructions to
  101. /// use two operands. This destroys SSA information but it is desired by
  102. /// register allocators.
  103. extern char &TwoAddressInstructionPassID;
  104. /// ProcessImpicitDefs pass - This pass removes IMPLICIT_DEFs.
  105. extern char &ProcessImplicitDefsID;
  106. /// RegisterCoalescer - This pass merges live ranges to eliminate copies.
  107. extern char &RegisterCoalescerID;
  108. /// MachineScheduler - This pass schedules machine instructions.
  109. extern char &MachineSchedulerID;
  110. /// PostMachineScheduler - This pass schedules machine instructions postRA.
  111. extern char &PostMachineSchedulerID;
  112. /// SpillPlacement analysis. Suggest optimal placement of spill code between
  113. /// basic blocks.
  114. extern char &SpillPlacementID;
  115. /// ShrinkWrap pass. Look for the best place to insert save and restore
  116. // instruction and update the MachineFunctionInfo with that information.
  117. extern char &ShrinkWrapID;
  118. /// LiveRangeShrink pass. Move instruction close to its definition to shrink
  119. /// the definition's live range.
  120. extern char &LiveRangeShrinkID;
  121. /// Greedy register allocator.
  122. extern char &RAGreedyID;
  123. /// Basic register allocator.
  124. extern char &RABasicID;
  125. /// VirtRegRewriter pass. Rewrite virtual registers to physical registers as
  126. /// assigned in VirtRegMap.
  127. extern char &VirtRegRewriterID;
  128. FunctionPass *createVirtRegRewriter(bool ClearVirtRegs = true);
  129. /// UnreachableMachineBlockElimination - This pass removes unreachable
  130. /// machine basic blocks.
  131. extern char &UnreachableMachineBlockElimID;
  132. /// DeadMachineInstructionElim - This pass removes dead machine instructions.
  133. extern char &DeadMachineInstructionElimID;
  134. /// This pass adds dead/undef flags after analyzing subregister lanes.
  135. extern char &DetectDeadLanesID;
  136. /// This pass perform post-ra machine sink for COPY instructions.
  137. extern char &PostRAMachineSinkingID;
  138. /// This pass adds flow sensitive discriminators.
  139. extern char &MIRAddFSDiscriminatorsID;
  140. /// This pass reads flow sensitive profile.
  141. extern char &MIRProfileLoaderPassID;
  142. /// FastRegisterAllocation Pass - This pass register allocates as fast as
  143. /// possible. It is best suited for debug code where live ranges are short.
  144. ///
  145. FunctionPass *createFastRegisterAllocator();
  146. FunctionPass *createFastRegisterAllocator(RegClassFilterFunc F,
  147. bool ClearVirtRegs);
  148. /// BasicRegisterAllocation Pass - This pass implements a degenerate global
  149. /// register allocator using the basic regalloc framework.
  150. ///
  151. FunctionPass *createBasicRegisterAllocator();
  152. FunctionPass *createBasicRegisterAllocator(RegClassFilterFunc F);
  153. /// Greedy register allocation pass - This pass implements a global register
  154. /// allocator for optimized builds.
  155. ///
  156. FunctionPass *createGreedyRegisterAllocator();
  157. FunctionPass *createGreedyRegisterAllocator(RegClassFilterFunc F);
  158. /// PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean
  159. /// Quadratic Prograaming (PBQP) based register allocator.
  160. ///
  161. FunctionPass *createDefaultPBQPRegisterAllocator();
  162. /// PrologEpilogCodeInserter - This pass inserts prolog and epilog code,
  163. /// and eliminates abstract frame references.
  164. extern char &PrologEpilogCodeInserterID;
  165. MachineFunctionPass *createPrologEpilogInserterPass();
  166. /// ExpandPostRAPseudos - This pass expands pseudo instructions after
  167. /// register allocation.
  168. extern char &ExpandPostRAPseudosID;
  169. /// PostRAHazardRecognizer - This pass runs the post-ra hazard
  170. /// recognizer.
  171. extern char &PostRAHazardRecognizerID;
  172. /// PostRAScheduler - This pass performs post register allocation
  173. /// scheduling.
  174. extern char &PostRASchedulerID;
  175. /// BranchFolding - This pass performs machine code CFG based
  176. /// optimizations to delete branches to branches, eliminate branches to
  177. /// successor blocks (creating fall throughs), and eliminating branches over
  178. /// branches.
  179. extern char &BranchFolderPassID;
  180. /// BranchRelaxation - This pass replaces branches that need to jump further
  181. /// than is supported by a branch instruction.
  182. extern char &BranchRelaxationPassID;
  183. /// MachineFunctionPrinterPass - This pass prints out MachineInstr's.
  184. extern char &MachineFunctionPrinterPassID;
  185. /// MIRPrintingPass - this pass prints out the LLVM IR using the MIR
  186. /// serialization format.
  187. extern char &MIRPrintingPassID;
  188. /// TailDuplicate - Duplicate blocks with unconditional branches
  189. /// into tails of their predecessors.
  190. extern char &TailDuplicateID;
  191. /// Duplicate blocks with unconditional branches into tails of their
  192. /// predecessors. Variant that works before register allocation.
  193. extern char &EarlyTailDuplicateID;
  194. /// MachineTraceMetrics - This pass computes critical path and CPU resource
  195. /// usage in an ensemble of traces.
  196. extern char &MachineTraceMetricsID;
  197. /// EarlyIfConverter - This pass performs if-conversion on SSA form by
  198. /// inserting cmov instructions.
  199. extern char &EarlyIfConverterID;
  200. /// EarlyIfPredicator - This pass performs if-conversion on SSA form by
  201. /// predicating if/else block and insert select at the join point.
  202. extern char &EarlyIfPredicatorID;
  203. /// This pass performs instruction combining using trace metrics to estimate
  204. /// critical-path and resource depth.
  205. extern char &MachineCombinerID;
  206. /// StackSlotColoring - This pass performs stack coloring and merging.
  207. /// It merges disjoint allocas to reduce the stack size.
  208. extern char &StackColoringID;
  209. /// IfConverter - This pass performs machine code if conversion.
  210. extern char &IfConverterID;
  211. FunctionPass *createIfConverter(
  212. std::function<bool(const MachineFunction &)> Ftor);
  213. /// MachineBlockPlacement - This pass places basic blocks based on branch
  214. /// probabilities.
  215. extern char &MachineBlockPlacementID;
  216. /// MachineBlockPlacementStats - This pass collects statistics about the
  217. /// basic block placement using branch probabilities and block frequency
  218. /// information.
  219. extern char &MachineBlockPlacementStatsID;
  220. /// GCLowering Pass - Used by gc.root to perform its default lowering
  221. /// operations.
  222. FunctionPass *createGCLoweringPass();
  223. /// GCLowering Pass - Used by gc.root to perform its default lowering
  224. /// operations.
  225. extern char &GCLoweringID;
  226. /// ShadowStackGCLowering - Implements the custom lowering mechanism
  227. /// used by the shadow stack GC. Only runs on functions which opt in to
  228. /// the shadow stack collector.
  229. FunctionPass *createShadowStackGCLoweringPass();
  230. /// ShadowStackGCLowering - Implements the custom lowering mechanism
  231. /// used by the shadow stack GC.
  232. extern char &ShadowStackGCLoweringID;
  233. /// GCMachineCodeAnalysis - Target-independent pass to mark safe points
  234. /// in machine code. Must be added very late during code generation, just
  235. /// prior to output, and importantly after all CFG transformations (such as
  236. /// branch folding).
  237. extern char &GCMachineCodeAnalysisID;
  238. /// Creates a pass to print GC metadata.
  239. ///
  240. FunctionPass *createGCInfoPrinter(raw_ostream &OS);
  241. /// MachineCSE - This pass performs global CSE on machine instructions.
  242. extern char &MachineCSEID;
  243. /// MIRCanonicalizer - This pass canonicalizes MIR by renaming vregs
  244. /// according to the semantics of the instruction as well as hoists
  245. /// code.
  246. extern char &MIRCanonicalizerID;
  247. /// ImplicitNullChecks - This pass folds null pointer checks into nearby
  248. /// memory operations.
  249. extern char &ImplicitNullChecksID;
  250. /// This pass performs loop invariant code motion on machine instructions.
  251. extern char &MachineLICMID;
  252. /// This pass performs loop invariant code motion on machine instructions.
  253. /// This variant works before register allocation. \see MachineLICMID.
  254. extern char &EarlyMachineLICMID;
  255. /// MachineSinking - This pass performs sinking on machine instructions.
  256. extern char &MachineSinkingID;
  257. /// MachineCopyPropagation - This pass performs copy propagation on
  258. /// machine instructions.
  259. extern char &MachineCopyPropagationID;
  260. /// PeepholeOptimizer - This pass performs peephole optimizations -
  261. /// like extension and comparison eliminations.
  262. extern char &PeepholeOptimizerID;
  263. /// OptimizePHIs - This pass optimizes machine instruction PHIs
  264. /// to take advantage of opportunities created during DAG legalization.
  265. extern char &OptimizePHIsID;
  266. /// StackSlotColoring - This pass performs stack slot coloring.
  267. extern char &StackSlotColoringID;
  268. /// This pass lays out funclets contiguously.
  269. extern char &FuncletLayoutID;
  270. /// This pass inserts the XRay instrumentation sleds if they are supported by
  271. /// the target platform.
  272. extern char &XRayInstrumentationID;
  273. /// This pass inserts FEntry calls
  274. extern char &FEntryInserterID;
  275. /// This pass implements the "patchable-function" attribute.
  276. extern char &PatchableFunctionID;
  277. /// createStackProtectorPass - This pass adds stack protectors to functions.
  278. ///
  279. FunctionPass *createStackProtectorPass();
  280. /// createMachineVerifierPass - This pass verifies cenerated machine code
  281. /// instructions for correctness.
  282. ///
  283. FunctionPass *createMachineVerifierPass(const std::string& Banner);
  284. /// createDwarfEHPass - This pass mulches exception handling code into a form
  285. /// adapted to code generation. Required if using dwarf exception handling.
  286. FunctionPass *createDwarfEHPass(CodeGenOpt::Level OptLevel);
  287. /// createWinEHPass - Prepares personality functions used by MSVC on Windows,
  288. /// in addition to the Itanium LSDA based personalities.
  289. FunctionPass *createWinEHPass(bool DemoteCatchSwitchPHIOnly = false);
  290. /// createSjLjEHPreparePass - This pass adapts exception handling code to use
  291. /// the GCC-style builtin setjmp/longjmp (sjlj) to handling EH control flow.
  292. ///
  293. FunctionPass *createSjLjEHPreparePass(const TargetMachine *TM);
  294. /// createWasmEHPass - This pass adapts exception handling code to use
  295. /// WebAssembly's exception handling scheme.
  296. FunctionPass *createWasmEHPass();
  297. /// LocalStackSlotAllocation - This pass assigns local frame indices to stack
  298. /// slots relative to one another and allocates base registers to access them
  299. /// when it is estimated by the target to be out of range of normal frame
  300. /// pointer or stack pointer index addressing.
  301. extern char &LocalStackSlotAllocationID;
  302. /// This pass expands pseudo-instructions, reserves registers and adjusts
  303. /// machine frame information.
  304. extern char &FinalizeISelID;
  305. /// UnpackMachineBundles - This pass unpack machine instruction bundles.
  306. extern char &UnpackMachineBundlesID;
  307. FunctionPass *
  308. createUnpackMachineBundles(std::function<bool(const MachineFunction &)> Ftor);
  309. /// FinalizeMachineBundles - This pass finalize machine instruction
  310. /// bundles (created earlier, e.g. during pre-RA scheduling).
  311. extern char &FinalizeMachineBundlesID;
  312. /// StackMapLiveness - This pass analyses the register live-out set of
  313. /// stackmap/patchpoint intrinsics and attaches the calculated information to
  314. /// the intrinsic for later emission to the StackMap.
  315. extern char &StackMapLivenessID;
  316. /// RemoveRedundantDebugValues pass.
  317. extern char &RemoveRedundantDebugValuesID;
  318. /// LiveDebugValues pass
  319. extern char &LiveDebugValuesID;
  320. /// createJumpInstrTables - This pass creates jump-instruction tables.
  321. ModulePass *createJumpInstrTablesPass();
  322. /// InterleavedAccess Pass - This pass identifies and matches interleaved
  323. /// memory accesses to target specific intrinsics.
  324. ///
  325. FunctionPass *createInterleavedAccessPass();
  326. /// InterleavedLoadCombines Pass - This pass identifies interleaved loads and
  327. /// combines them into wide loads detectable by InterleavedAccessPass
  328. ///
  329. FunctionPass *createInterleavedLoadCombinePass();
  330. /// LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all
  331. /// TLS variables for the emulated TLS model.
  332. ///
  333. ModulePass *createLowerEmuTLSPass();
  334. /// This pass lowers the \@llvm.load.relative and \@llvm.objc.* intrinsics to
  335. /// instructions. This is unsafe to do earlier because a pass may combine the
  336. /// constant initializer into the load, which may result in an overflowing
  337. /// evaluation.
  338. ModulePass *createPreISelIntrinsicLoweringPass();
  339. /// GlobalMerge - This pass merges internal (by default) globals into structs
  340. /// to enable reuse of a base pointer by indexed addressing modes.
  341. /// It can also be configured to focus on size optimizations only.
  342. ///
  343. Pass *createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset,
  344. bool OnlyOptimizeForSize = false,
  345. bool MergeExternalByDefault = false);
  346. /// This pass splits the stack into a safe stack and an unsafe stack to
  347. /// protect against stack-based overflow vulnerabilities.
  348. FunctionPass *createSafeStackPass();
  349. /// This pass detects subregister lanes in a virtual register that are used
  350. /// independently of other lanes and splits them into separate virtual
  351. /// registers.
  352. extern char &RenameIndependentSubregsID;
  353. /// This pass is executed POST-RA to collect which physical registers are
  354. /// preserved by given machine function.
  355. FunctionPass *createRegUsageInfoCollector();
  356. /// Return a MachineFunction pass that identifies call sites
  357. /// and propagates register usage information of callee to caller
  358. /// if available with PysicalRegisterUsageInfo pass.
  359. FunctionPass *createRegUsageInfoPropPass();
  360. /// This pass performs software pipelining on machine instructions.
  361. extern char &MachinePipelinerID;
  362. /// This pass frees the memory occupied by the MachineFunction.
  363. FunctionPass *createFreeMachineFunctionPass();
  364. /// This pass performs outlining on machine instructions directly before
  365. /// printing assembly.
  366. ModulePass *createMachineOutlinerPass(bool RunOnAllFunctions = true);
  367. /// This pass expands the experimental reduction intrinsics into sequences of
  368. /// shuffles.
  369. FunctionPass *createExpandReductionsPass();
  370. // This pass replaces intrinsics operating on vector operands with calls to
  371. // the corresponding function in a vector library (e.g., SVML, libmvec).
  372. FunctionPass *createReplaceWithVeclibLegacyPass();
  373. /// This pass expands the vector predication intrinsics into unpredicated
  374. /// instructions with selects or just the explicit vector length into the
  375. /// predicate mask.
  376. FunctionPass *createExpandVectorPredicationPass();
  377. // This pass expands memcmp() to load/stores.
  378. FunctionPass *createExpandMemCmpPass();
  379. /// Creates Break False Dependencies pass. \see BreakFalseDeps.cpp
  380. FunctionPass *createBreakFalseDeps();
  381. // This pass expands indirectbr instructions.
  382. FunctionPass *createIndirectBrExpandPass();
  383. /// Creates CFI Instruction Inserter pass. \see CFIInstrInserter.cpp
  384. FunctionPass *createCFIInstrInserter();
  385. /// Creates CFGuard longjmp target identification pass.
  386. /// \see CFGuardLongjmp.cpp
  387. FunctionPass *createCFGuardLongjmpPass();
  388. /// Creates EHContGuard catchret target identification pass.
  389. /// \see EHContGuardCatchret.cpp
  390. FunctionPass *createEHContGuardCatchretPass();
  391. /// Create Hardware Loop pass. \see HardwareLoops.cpp
  392. FunctionPass *createHardwareLoopsPass();
  393. /// This pass inserts pseudo probe annotation for callsite profiling.
  394. FunctionPass *createPseudoProbeInserter();
  395. /// Create IR Type Promotion pass. \see TypePromotion.cpp
  396. FunctionPass *createTypePromotionPass();
  397. /// Add Flow Sensitive Discriminators. PassNum specifies the
  398. /// sequence number of this pass (starting from 1).
  399. FunctionPass *
  400. createMIRAddFSDiscriminatorsPass(sampleprof::FSDiscriminatorPass P);
  401. /// Read Flow Sensitive Profile.
  402. FunctionPass *createMIRProfileLoaderPass(std::string File,
  403. std::string RemappingFile,
  404. sampleprof::FSDiscriminatorPass P);
  405. /// Creates MIR Debugify pass. \see MachineDebugify.cpp
  406. ModulePass *createDebugifyMachineModulePass();
  407. /// Creates MIR Strip Debug pass. \see MachineStripDebug.cpp
  408. /// If OnlyDebugified is true then it will only strip debug info if it was
  409. /// added by a Debugify pass. The module will be left unchanged if the debug
  410. /// info was generated by another source such as clang.
  411. ModulePass *createStripDebugMachineModulePass(bool OnlyDebugified);
  412. /// Creates MIR Check Debug pass. \see MachineCheckDebugify.cpp
  413. ModulePass *createCheckDebugMachineModulePass();
  414. /// The pass fixups statepoint machine instruction to replace usage of
  415. /// caller saved registers with stack slots.
  416. extern char &FixupStatepointCallerSavedID;
  417. /// The pass transforms load/store <256 x i32> to AMX load/store intrinsics
  418. /// or split the data to two <128 x i32>.
  419. FunctionPass *createX86LowerAMXTypePass();
  420. /// The pass insert tile config intrinsics for AMX fast register allocation.
  421. FunctionPass *createX86PreAMXConfigPass();
  422. /// The pass transforms amx intrinsics to scalar operation if the function has
  423. /// optnone attribute or it is O0.
  424. FunctionPass *createX86LowerAMXIntrinsicsPass();
  425. /// When learning an eviction policy, extract score(reward) information,
  426. /// otherwise this does nothing
  427. FunctionPass *createRegAllocScoringPass();
  428. } // End llvm namespace
  429. #endif
  430. #ifdef __GNUC__
  431. #pragma GCC diagnostic pop
  432. #endif