[llvm] [DXIL] Add sign intrinsic part 2 (PR #101988)
Tim Gymnich via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 06:22:17 PDT 2024
================
@@ -293,6 +295,36 @@ static bool expandClampIntrinsic(CallInst *Orig, Intrinsic::ID ClampIntrinsic) {
return true;
}
+static bool expandSignIntrinsic(CallInst *Orig) {
+ IRBuilder<> Builder(Orig->getParent());
+ Value *X = Orig->getOperand(0);
+ Type *Ty = X->getType();
+ Type *ScalarTy = Ty->getScalarType();
+ Type *RetTy = Orig->getType();
+ Constant *Zero = Constant::getNullValue(Ty);
+ Builder.SetInsertPoint(Orig);
----------------
tgymnich wrote:
part 1 fixed in 61bc2a8
https://github.com/llvm/llvm-project/pull/101988
More information about the llvm-commits
mailing list