This commit introduces branch weight attributes to the LLVM::CallOp and
LLVM::InvokeOp and adds both import and export of them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMIRToLLVMTranslation.cpp | ||
|---|---|---|
| 120–127 | nit: do we want to use a TypeSwitch now that the list of operation starts to get long? | |
| mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp | ||
| 326 | nit: add a brief doc comment | |
| 330 | nit: I believe the llvm prefix is not needed for SmallVector and APInt? | |
| 354–357 | I think "If the called function has a result, remap the corresponding value. Note that LLVM IR dialect CallOp has either 0 or 1 result." should move down to where it was before? if (opInst.getNumResults() != 0) {
moduleTranslation.mapValue(opInst.getResult(0), call);
return success();
} | |
| mlir/test/Target/LLVMIR/llvmir.mlir | ||
| 1638 | nit: indent by 2 spaces. | |
| 1653 | nit: indent by 2 spaces. | |
nit: do we want to use a TypeSwitch now that the list of operation starts to get long?