Add complex.arg op which calculates the angle of complex number. The op name is inspired by the function carg in libm.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp | ||
---|---|---|
1061 | nit: sort the patterns | |
mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir | ||
703 | bikeshedding: let's call it complex.angle. I find complex.arg a bit confusing, even though carg exists in libm. https://www.geeksforgeeks.org/numpy-angle-in-python/#:~:text=angle()%20function%20is%20used,1(x%2Fy). |
nit: sort the patterns