Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 70 additions & 70 deletions lib/DXIL/DxilOperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"unary",
Attribute::ReadNone,
1,
{{0x7}},
{{0x0}}}, // Overloads: hfd
{{0x407}},
{{0x7}}}, // Overloads: hfd<hfd
{OC::Saturate,
"Saturate",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x7}},
{{0x0}}}, // Overloads: hfd
{{0x407}},
{{0x7}}}, // Overloads: hfd<hfd
{OC::IsNaN,
"IsNaN",
OCC::IsSpecialFloat,
Expand Down Expand Up @@ -144,112 +144,112 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Sin,
"Sin",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Tan,
"Tan",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Acos,
"Acos",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Asin,
"Asin",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Atan,
"Atan",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Hcos,
"Hcos",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Hsin,
"Hsin",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Htan,
"Htan",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Exp,
"Exp",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Frc,
"Frc",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Log,
"Log",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Sqrt,
"Sqrt",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Rsqrt,
"Rsqrt",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf

// Unary float - rounding
{OC::Round_ne,
Expand All @@ -258,32 +258,32 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Round_ni,
"Round_ni",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Round_pi,
"Round_pi",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::Round_z,
"Round_z",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf

// Unary int
{OC::Bfrev,
Expand All @@ -292,8 +292,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"unary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil
{OC::Countbits,
"Countbits",
OCC::UnaryBits,
Expand Down Expand Up @@ -338,16 +338,16 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"binary",
Attribute::ReadNone,
1,
{{0x7}},
{{0x0}}}, // Overloads: hfd
{{0x407}},
{{0x7}}}, // Overloads: hfd<hfd
{OC::FMin,
"FMin",
OCC::Binary,
"binary",
Attribute::ReadNone,
1,
{{0x7}},
{{0x0}}}, // Overloads: hfd
{{0x407}},
{{0x7}}}, // Overloads: hfd<hfd

// Binary int
{OC::IMax,
Expand All @@ -356,16 +356,16 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"binary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil
{OC::IMin,
"IMin",
OCC::Binary,
"binary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil

// Binary uint
{OC::UMax,
Expand All @@ -374,16 +374,16 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"binary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil
{OC::UMin,
"UMin",
OCC::Binary,
"binary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil

// Binary int with two outputs
{OC::IMul,
Expand Down Expand Up @@ -438,16 +438,16 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"tertiary",
Attribute::ReadNone,
1,
{{0x7}},
{{0x0}}}, // Overloads: hfd
{{0x407}},
{{0x7}}}, // Overloads: hfd<hfd
{OC::Fma,
"Fma",
OCC::Tertiary,
"tertiary",
Attribute::ReadNone,
1,
{{0x4}},
{{0x0}}}, // Overloads: d
{{0x404}},
{{0x4}}}, // Overloads: d<d

// Tertiary int
{OC::IMad,
Expand All @@ -456,8 +456,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"tertiary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil

// Tertiary uint
{OC::UMad,
Expand All @@ -466,8 +466,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"tertiary",
Attribute::ReadNone,
1,
{{0xe0}},
{{0x0}}}, // Overloads: wil
{{0x4e0}},
{{0xe0}}}, // Overloads: wil<wil

// Tertiary int
{OC::Msad,
Expand Down Expand Up @@ -764,32 +764,32 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::DerivCoarseY,
"DerivCoarseY",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::DerivFineX,
"DerivFineX",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf
{OC::DerivFineY,
"DerivFineY",
OCC::Unary,
"unary",
Attribute::ReadNone,
1,
{{0x3}},
{{0x0}}}, // Overloads: hf
{{0x403}},
{{0x3}}}, // Overloads: hf<hf

// Pixel shader
{OC::EvalSnapped,
Expand Down
Loading
Loading