[llvm] [DXIL] Implement pow lowering (PR #86733)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 15:35:44 PDT 2024
================
@@ -197,6 +198,26 @@ static bool expandLog10Intrinsic(CallInst *Orig) {
return expandLogIntrinsic(Orig, numbers::ln2f / numbers::ln10f);
}
+static bool expandPowIntrinsic(CallInst *Orig) {
+
+ Value *X = Orig->getOperand(0);
+ Value *Y = Orig->getOperand(1);
+ Type *Ty = X->getType();
+ IRBuilder<> Builder(Orig->getParent());
+ Builder.SetInsertPoint(Orig);
+
+ auto *Log2Call =
----------------
farzonl wrote:
@bob80905 I believe the current plan is to do optimizations after `dxil-op-lower`
https://github.com/llvm/llvm-project/pull/86733
More information about the llvm-commits
mailing list