llvm-project/clang/lib/Sema/SemaDirectX.cpp
Farzon Lotfi 16c84c4475
[DirectX] Add target builtins (#134439)
- fixes #132303
- Moves dot2add from a language builtin to a target builtin.
-  Sets the scaffolding for Sema checks for DX builtins
-  Setup DirectX backend as able to have target builtins
- Adds a DX TargetBuiltins emitter in
`clang/lib/CodeGen/TargetBuiltins/DirectX.cpp`
2025-04-07 12:06:57 -04:00

24 lines
869 B
C++

//===- SemaDirectX.cpp - Semantic Analysis for DirectX constructs----------===//
//
// 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 implements Semantic Analysis for DirectX constructs.
//===----------------------------------------------------------------------===//
#include "clang/Sema/SemaDirectX.h"
#include "clang/Basic/TargetBuiltins.h"
#include "clang/Sema/Sema.h"
namespace clang {
SemaDirectX::SemaDirectX(Sema &S) : SemaBase(S) {}
bool SemaDirectX::CheckDirectXBuiltinFunctionCall(unsigned BuiltinID,
CallExpr *TheCall) {
return false;
}
} // namespace clang