14#ifndef LLVM_DEBUGINFO_LOGICALVIEW_CORE_LVSOURCELANGUAGE_H
15#define LLVM_DEBUGINFO_LOGICALVIEW_CORE_LVSOURCELANGUAGE_H
34#define HANDLE_DW_LANG(ID, NAME, LOWER_BOUND, VERSION, VENDOR) \
35 DW_LANG_##NAME = (TagDwarf << 16) | ID,
36#include "llvm/BinaryFormat/Dwarf.def"
38#define CV_LANGUAGE(NAME, ID) CV_LANG_##NAME = (TagCodeView << 16) | ID,
39#include "llvm/DebugInfo/CodeView/CodeViewLanguages.def"
62 :
Language(static_cast<TaggedLanguage>((
Tag << 16) | Lang)) {}
64 unsigned getLang()
const {
return Language & 0xffff; }
static std::optional< unsigned > getTag(const TargetRegisterInfo *TRI, const MachineInstr &MI, const LoadInfo &LI)
This file contains constants used for implementing Dwarf debug support.
StringRef - Represent a constant reference to a string, i.e.
SourceLanguage
These values correspond to the CV_CFL_LANG enumeration in the Microsoft Debug Interface Access SDK,...
This is an optimization pass for GlobalISel generic memory operations.
static constexpr unsigned TagDwarf
TaggedLanguage get() const
static constexpr unsigned TagCodeView
LVSourceLanguage(llvm::dwarf::SourceLanguage SL)
bool operator==(const LVSourceLanguage &SL) const
LLVM_ABI StringRef getName() const
bool operator==(const LVSourceLanguage::TaggedLanguage &TL) const
LVSourceLanguage(llvm::codeview::SourceLanguage SL)
LVSourceLanguage()=default