This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Define annotation intrinsics
ClosedPublic

Authored by victor-eds on Jul 10 2023, 6:42 AM.

Details

Summary

Define llvm.intr.var.annotation, llvm.intr.ptr.annotation and
llvm.intr.annotation in the llvm dialect as llvm.var.annotation,
llvm.ptr.annotation and llvm.annotation counterparts.

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

Diff Detail

Event Timeline

victor-eds created this revision.Jul 10 2023, 6:42 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.Jul 10 2023, 6:42 AM

Remove tabs

zero9178 added inline comments.Jul 10 2023, 6:49 AM
mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
956

Integer constraints so far have always been defined using the definitions in OpBase.td. This is the first use of Builtin_Integer in the codebase.

Could you use AnySignlessInteger instead? Ditto below

958

nit: odd indentation (tabs vs spaces?)

gysit added inline comments.Jul 10 2023, 6:55 AM
mlir/test/Target/LLVMIR/Import/intrinsic.ll
439

nit: I would drop the extra white spaces.

441

nit: I would ident the check and also drop the whitespaces before the actual checked intrinsic here and below.

Address comments

victor-eds marked an inline comment as done.EditedJul 11 2023, 2:06 AM

I changed that to use signless integers. Thanks!

victor-eds marked 3 inline comments as done.Jul 11 2023, 2:06 AM

Done

gysit accepted this revision.Jul 11 2023, 2:16 AM

LGTM!

This revision is now accepted and ready to land.Jul 11 2023, 2:16 AM
This revision was automatically updated to reflect the committed changes.