Quartz 5

Home

❯

raw

❯

notes

❯

LLVM Pass

LLVM Pass

Properties1
tagscompiler/llvm

Jun 28, 20261 min read

LLVM Pass

  • mem2reg
  • Loop Invariant Code Motion
  • Constant Propagation
  • CSE
  • Dead Code Elimination
  • PRE
  • GVN

Combine

命令の簡単化や合体

  • Add x, 0 -> x

Legalize

アーキテクチャ固有の変換のうちの一部

(Load (Add base, (Mul off, 4))) -> MOVrm32 [base + 4 * off]

Instruction Selection

  • Add x, 2 -> ADDrm32 x, 2

参考文献

  • 自作コンパイラ基盤の話 - Qiita

Graph View

  • LLVM Pass
  • Combine
  • Legalize
  • Instruction Selection
  • 参考文献

Backlinks

  • MOC: 言語/型/コンパイラ
  • Effective Automatic Parallelization and Locality Optimization Using The Polyhedral Model

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Discord Community