Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

main.ll
; Make sure @main is left untouched.
; RUN: opt -passes=metarenamer -S %s | FileCheck %s

; CHECK: define void @main
; CHECK: call void @main

define void @main() {
  call void @patatino()
  ret void
}

define void @patatino() {
  call void @main()
  ret void
}