Path: blob/main/contrib/llvm-project/llvm/lib/Target/DirectX/TargetInfo/DirectXTargetInfo.cpp
35294 views
//===- DirectXTargetInfo.cpp - DirectX Target Implementation ----*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7///8/// \file9/// This file contains DirectX target initializer.10///11//===----------------------------------------------------------------------===//1213#include "llvm/MC/TargetRegistry.h"14#include "llvm/Support/Compiler.h"15#include "llvm/TargetParser/Triple.h"1617namespace llvm {18Target &getTheDirectXTarget() {19static Target TheDirectXTarget;20return TheDirectXTarget;21}22} // namespace llvm2324using namespace llvm;2526extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeDirectXTargetInfo() {27RegisterTarget<Triple::dxil, /*HasJIT=*/false> X(28getTheDirectXTarget(), "dxil", "DirectX Intermediate Language", "DXIL");29}303132