xref: /freebsd/contrib/llvm-project/clang/include/clang/Basic/BuiltinsSPIRVBase.td (revision 700637cbb5e582861067a11aaca4d053546871d2)
1//===--- BuiltinsSPIRVBase.td - SPIRV Builtin function database -*- C++ -*-===//
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
9include "clang/Basic/BuiltinsBase.td"
10
11class SPIRVBuiltin<string prototype, list<Attribute> Attr> : Builtin {
12  let Spellings = ["__builtin_spirv_"#NAME];
13  let Prototype = prototype;
14  let Attributes = !listconcat([NoThrow], Attr);
15}
16