Mercurial > hg > CbC > CbC_llvm
view lib/Target/TargetIntrinsicInfo.cpp @ 147:c2174574ed3a
LLVM 10
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 16:55:33 +0900 |
parents | 1172e4bd9c6f |
children |
line wrap: on
line source
//===-- 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/StringMap.h" #include "llvm/IR/Function.h" using namespace llvm; TargetIntrinsicInfo::TargetIntrinsicInfo() { } TargetIntrinsicInfo::~TargetIntrinsicInfo() { } unsigned TargetIntrinsicInfo::getIntrinsicID(const Function *F) const { const ValueName *ValName = F->getValueName(); if (!ValName) return 0; return lookupName(ValName->getKeyData(), ValName->getKeyLength()); }