Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / lib / Target / PowerPC / PPCCCState.cpp
blob79ffc6627a61edf9443464fb158d4cb420548407
1 //===---- PPCCCState.cpp - CCState with PowerPC specific extensions ---------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "PPCCCState.h"
10 #include "PPCSubtarget.h"
11 #include "llvm/IR/Module.h"
12 using namespace llvm;
14 // Identify lowered values that originated from ppcf128 arguments and record
15 // this.
16 void PPCCCState::PreAnalyzeCallOperands(
17 const SmallVectorImpl<ISD::OutputArg> &Outs) {
18 for (const auto &I : Outs) {
19 if (I.ArgVT == llvm::MVT::ppcf128)
20 OriginalArgWasPPCF128.push_back(true);
21 else
22 OriginalArgWasPPCF128.push_back(false);
26 void PPCCCState::PreAnalyzeFormalArguments(
27 const SmallVectorImpl<ISD::InputArg> &Ins) {
28 for (const auto &I : Ins) {
29 if (I.ArgVT == llvm::MVT::ppcf128) {
30 OriginalArgWasPPCF128.push_back(true);
31 } else {
32 OriginalArgWasPPCF128.push_back(false);