LLVM
20.0.0git
lib
Target
Xtensa
TargetInfo
XtensaTargetInfo.cpp
Go to the documentation of this file.
1
//===-- XtensaTargetInfo.cpp - Xtensa Target Implementation ---------------===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6
// See https://llvm.org/LICENSE.txt for license information.
7
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8
//
9
//===----------------------------------------------------------------------===//
10
11
#include "
TargetInfo/XtensaTargetInfo.h
"
12
#include "
llvm/MC/TargetRegistry.h
"
13
using namespace
llvm
;
14
15
Target
&
llvm::getTheXtensaTarget
() {
16
static
Target
TheXtensaTarget
;
17
return
TheXtensaTarget
;
18
}
19
20
extern
"C"
LLVM_EXTERNAL_VISIBILITY
void
LLVMInitializeXtensaTargetInfo
() {
21
RegisterTarget<Triple::xtensa>
X
(
getTheXtensaTarget
(),
"xtensa"
,
"Xtensa 32"
,
22
"XTENSA"
);
23
}
LLVM_EXTERNAL_VISIBILITY
#define LLVM_EXTERNAL_VISIBILITY
Definition:
Compiler.h:131
X
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
TargetRegistry.h
LLVMInitializeXtensaTargetInfo
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeXtensaTargetInfo()
Definition:
XtensaTargetInfo.cpp:20
XtensaTargetInfo.h
llvm::Target
Target - Wrapper for Target specific information.
Definition:
TargetRegistry.h:144
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::getTheXtensaTarget
Target & getTheXtensaTarget()
Definition:
XtensaTargetInfo.cpp:15
llvm::TheXtensaTarget
Target TheXtensaTarget
Definition:
XtensaTargetMachine.h:23
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition:
TargetRegistry.h:1030
Generated on Thu Nov 21 2024 05:02:30 for LLVM by
1.9.6