Path: blob/main/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCCCState.cpp
35266 views
//===---- PPCCCState.cpp - CCState with PowerPC specific extensions ---------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "PPCCCState.h"9#include "PPCSubtarget.h"10#include "llvm/IR/Module.h"11using namespace llvm;1213// Identify lowered values that originated from ppcf128 arguments and record14// this.15void PPCCCState::PreAnalyzeCallOperands(16const SmallVectorImpl<ISD::OutputArg> &Outs) {17for (const auto &I : Outs) {18if (I.ArgVT == llvm::MVT::ppcf128)19OriginalArgWasPPCF128.push_back(true);20else21OriginalArgWasPPCF128.push_back(false);22}23}2425void PPCCCState::PreAnalyzeFormalArguments(26const SmallVectorImpl<ISD::InputArg> &Ins) {27for (const auto &I : Ins) {28if (I.ArgVT == llvm::MVT::ppcf128) {29OriginalArgWasPPCF128.push_back(true);30} else {31OriginalArgWasPPCF128.push_back(false);32}33}34}353637