clang: lib/CodeGen/TargetBuiltins/DirectX.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

16#include "llvm/IR/Intrinsics.h"

17

18using namespace clang;

20using namespace llvm;

21

24 switch (BuiltinID) {

25 case DirectX::BI__builtin_dx_dot2add: {

29

34

35 Intrinsic::ID ID = llvm ::Intrinsic::dx_dot2add;

36 return Builder.CreateIntrinsic(

37 Acc->getType(), ID,

39 }

40 }

41 return nullptr;

42}

Enumerates target-specific builtins in their own namespaces within namespace clang.

CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).

Expr * getArg(unsigned Arg)

getArg - Return the specified argument.

llvm::Value * EmitDirectXBuiltinExpr(unsigned BuiltinID, const CallExpr *E)

Definition DirectX.cpp:22

llvm::Value * EmitScalarExpr(const Expr *E, bool IgnoreResultAssign=false)

EmitScalarExpr - Emit the computation of the specified expression of LLVM scalar type,...

The JSON file list parser is used to communicate input to InstallAPI.

Diagnostic wrappers for TextAPI types for error reporting.