LLVM 24.0.0git
Target.cpp
Go to the documentation of this file.
1//===-- Target.cpp --------------------------------------------------------===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8//
9// This file implements the common infrastructure (including C bindings) for
10// libLLVMTarget.a, which implements target information.
11//
12//===----------------------------------------------------------------------===//
13
14#include "llvm-c/Target.h"
18
19using namespace llvm;
20
22 return reinterpret_cast<TargetLibraryInfoImpl*>(P);
23}
24
27 return reinterpret_cast<LLVMTargetLibraryInfoRef>(X);
28}
29
35
#define X(NUM, ENUM, NAME)
Definition ELF.h:857
#define P(N)
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition Registry.h:116
Implementation of the target library information.
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition Types.h:127
void LLVMAddTargetLibraryInfo(LLVMTargetLibraryInfoRef TLI, LLVMPassManagerRef PM)
Adds target library information to a pass manager.
Definition Target.cpp:36
struct LLVMOpaqueTargetLibraryInfotData * LLVMTargetLibraryInfoRef
Definition Target.h:37
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI void initializeRuntimeLibraryInfoWrapperPass(PassRegistry &)
Attribute unwrap(LLVMAttributeRef Attr)
Definition Attributes.h:400
LLVM_ABI void initializeTarget(PassRegistry &)
Initialize all passes linked into the CodeGen library.
Definition Target.cpp:30
LLVM_ABI void initializeTargetTransformInfoWrapperPassPass(PassRegistry &)
LLVM_ABI void initializeTargetLibraryInfoWrapperPassPass(PassRegistry &)
LLVMAttributeRef wrap(Attribute Attr)
Definition Attributes.h:395