This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Add trap intrinsics to the dialect
ClosedPublic

Authored by victor-eds on May 1 2023, 1:35 AM.

Details

Summary

Define llvm.trap, llvm.debugtrap, and llvm.ubsantrap intrinsics in the
llvm dialect.

Signed-off-by: Victor Perez <victor.perez@codeplay.com>

Diff Detail

Event Timeline

victor-eds created this revision.May 1 2023, 1:35 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
victor-eds requested review of this revision.May 1 2023, 1:35 AM
gysit accepted this revision.May 1 2023, 2:06 AM

LGTM modulo nit comment.

mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
719

nit: end comments with a dot here and blow.

Alternatively it may also make sense to put a header comment to group the intrinsics, e.g.

//
// Trap intrinsics.
//

and drop the per intrinsic comments since they are fairly redundant?

This revision is now accepted and ready to land.May 1 2023, 2:06 AM
victor-eds updated this revision to Diff 518414.May 1 2023, 3:03 AM

Drop similar doc comments

victor-eds marked an inline comment as done.May 1 2023, 3:04 AM

Yep, I think we can use a single comment. Thanks for the quick review!

This revision was automatically updated to reflect the committed changes.