llvm / llvm/circt

[MooreToCore] Lowering to math.ipow?

Open
#8,973 5 comments 0 reactions 0 assignees View on GitHub
Moore
Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

Is there a strong reason to go from PowUOp to math.ipow as opposed to lowering to a sequence of multiplications?

Is there any existing lowering from math.ipow to the core dialects?

https://github.com/llvm/circt/blob/83effb21cd6b1cebc060b4f57180f16683309cd9/lib/Conversion/MooreToCore/MooreToCore.cpp#L1379-L1398

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in lib/Conversion/MooreToCore/MooreToCore.cpp at the linked lowering around lines 1379-1398, and inspect how PowUOp is converted to math.ipow. Search the repository for lowerings from math.ipow to core dialects and compare the alternatives; done means reaching and documenting a decided lowering approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.