This is an archive of the discontinued LLVM Phabricator instance.

MLIR: add SinOp Lowering to __nv_sinf and __nv_sin
ClosedPublic

Authored by qliu93 on Oct 26 2020, 4:41 AM.

Details

Summary

Added lowering rule from SinOp to __nv_sinf and __nv_sin

Diff Detail

Event Timeline

qliu93 created this revision.Oct 26 2020, 4:41 AM
qliu93 requested review of this revision.Oct 26 2020, 4:41 AM
qliu93 retitled this revision from [] add SinOp Lowering to __nv_sinf and __nv_sin to MLIR: add SinOp Lowering to __nv_sinf and __nv_sin.Oct 26 2020, 4:42 AM
qliu93 edited the summary of this revision. (Show Details)
ftynse added a subscriber: ftynse.Oct 26 2020, 4:49 AM

You likely want to declare LLVM::SinOp as illegal in the conversion setup ~50 lines above.

Also, please make sure to upload the patch with full context or use arcanist.

qliu93 updated this revision to Diff 300877.Oct 26 2020, 8:23 PM

addIllegalOp

Hi, I add addIllegalOp and the corresponding test, please review again, thanks 😃

ftynse added inline comments.Oct 27 2020, 3:25 AM
mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
141

Let's not things irrelevant to the current commit (TanhOp)

qliu93 updated this revision to Diff 300941.Oct 27 2020, 4:21 AM

Remove irrelevant TanhOp

qliu93 marked an inline comment as done.Oct 27 2020, 4:22 AM
ftynse accepted this revision.Oct 27 2020, 6:40 AM
This revision is now accepted and ready to land.Oct 27 2020, 6:40 AM
qliu93 added a comment.EditedOct 27 2020, 10:38 PM

This is the first time that I submit codes into llvm project. After that this revision is accepted, what should I do next to merge into master branch? Thanks in advance.

I can land it for you, but I will need your name and email as they should appear on the commit. (Using arcanist - https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-command-line - automates this).

My name is "Qingyi Liu" and my email is liuqingyi1993@gmail.com. Thanks for adding commit message for me : ) I will learn to use arcanist and do it by myself next time.

This revision was automatically updated to reflect the committed changes.