This revision adds a branch weight op interface for the call / branch
operations that support branch weights. It can be used in the LLVM IR
import and export to simplify the branch weight conversion. An
additional mapping between call operations and instructions ensures
the actual conversion can be done in the module translation itself,
rather than in the dialect translation interface. It also has the
benefit that downstream users can amend custom metadata to the call
operation during the export to LLVM IR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
I know this hasn't been done consistently in this file but you could use auto here and below to avoid repeating the type twice.