1 //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file implements the TargetIntrinsicInfo class.
11 //===----------------------------------------------------------------------===//
13 #include "llvm/Target/TargetIntrinsicInfo.h"
14 #include "llvm/ADT/StringMap.h"
15 #include "llvm/IR/Function.h"
18 TargetIntrinsicInfo::TargetIntrinsicInfo() {
21 TargetIntrinsicInfo::~TargetIntrinsicInfo() {
24 unsigned TargetIntrinsicInfo::getIntrinsicID(const Function
*F
) const {
25 const ValueName
*ValName
= F
->getValueName();
28 return lookupName(ValName
->getKeyData(), ValName
->getKeyLength());