mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 13:56:07 +00:00

Most notably, Pass.h is no longer included by TargetMachine.h before: 1063570306 after: 1063332844 Differential Revision: https://reviews.llvm.org/D121168
28 lines
979 B
C++
28 lines
979 B
C++
//===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements the TargetIntrinsicInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/Target/TargetIntrinsicInfo.h"
|
|
#include "llvm/ADT/StringMapEntry.h"
|
|
#include "llvm/IR/Function.h"
|
|
using namespace llvm;
|
|
|
|
TargetIntrinsicInfo::TargetIntrinsicInfo() = default;
|
|
|
|
TargetIntrinsicInfo::~TargetIntrinsicInfo() = default;
|
|
|
|
unsigned TargetIntrinsicInfo::getIntrinsicID(const Function *F) const {
|
|
const ValueName *ValName = F->getValueName();
|
|
if (!ValName)
|
|
return 0;
|
|
return lookupName(ValName->getKeyData(), ValName->getKeyLength());
|
|
}
|