aboutsummaryrefslogtreecommitdiff
path: root/views/templates/panes/ir.pug
blob: 80f3342adebe8fe44caaa2743ac3fcaa1b55806d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mixin optionButton(bind, isActive, text, title)
  .button-checkbox
    button(type="button" class="dropdown-item btn btn-sm btn-light" + (isActive ? " active" : "") title=title data-bind=bind aria-pressed=isActive ? "true" : "false")
      span #{text}
    input.d-none(type="checkbox" checked=isActive)

#ir
  .top-bar.btn-toolbar.bg-light(role="toolbar")
    include ../../font-size
    .btn-group.btn-group-sm.options(role="group")
      button.btn.btn-sm.btn-light.dropdown-toggle(type="button" title="LLVM Opt Pass Options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Set output options")
        span.fas.fa-anchor
        span.hideable Options
      .dropdown-menu
        +optionButton("demangle-symbols", true, "Demangle Symbols", "Demangle symbols")
        +optionButton("-fno-discard-value-names", true, "-fno-discard-value-names", "Keep value names instead of LLVM value numbers")
    .btn-group.btn-group-sm.filters(role="group")
      button.btn.btn-sm.btn-light.dropdown-toggle(type="button" title="LLVM Opt Pass Filters" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Set output filters")
        span.fas.fa-filter
        span.hideable Filters
      .dropdown-menu
        +optionButton("filter-debug-info", true, "Hide Debug Info", "Filter debug info intrinsics")
        +optionButton("filter-instruction-metadata", true, "Hide Instruction Metadata", "Filter all IR metadata")
        +optionButton("filter-attributes", true, "Filter Attribute Groups", "Filter attribute groups")
        //- +optionButton("library-functions", true, "Filter Library Functions", "Filter library functions")
    .btn-group.btn-group-sm(role="group")
      button.btn.btn-sm.btn-light.cfg(title="Open Control Flow Graph")
        span <i class="fa-solid fa-exchange-alt"></i> Control Flow Graph
  div.llvm-opt-pipeline-body
    .monaco-placeholder