[llvm] [GlobalISel][AArch64] Add libcall lowering for fpowi. (PR #67114)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 09:34:49 PDT 2023
================
@@ -851,6 +853,24 @@ LegalizerHelper::libcall(MachineInstr &MI, LostDebugLocObserver &LocObserver) {
return Status;
break;
}
+ case TargetOpcode::G_FPOWI: {
+ Type *HLTy = getFloatTypeForLLT(Ctx, LLTy);
+ Type *ITy = IntegerType::get(
+ Ctx, MRI.getType(MI.getOperand(2).getReg()).getSizeInBits());
----------------
aemerson wrote:
You can `cast<GenericMachineInstr>(MI)` and then use `getReg(N)` for brevity here and below as well.
https://github.com/llvm/llvm-project/pull/67114
More information about the llvm-commits
mailing list