blob: fac6bb051ae8bb05ccdae1d2d3e49cc815048376 [file] [log] [blame]
// Copyright 2016 The SwiftShader Authors. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef rr_Reactor_hpp
#define rr_Reactor_hpp
#include "Nucleus.hpp"
#include "Routine.hpp"
#include "Traits.hpp"
#include <cassert>
#include <cstddef>
#include <cstdio>
#include <limits>
#include <tuple>
#include <unordered_map>
// Functions used for generating JIT debug info.
// See docs/ for more information.
namespace rr {
// Update the current source location for debug.
void EmitDebugLocation();
// Bind value to its symbolic name taken from the backtrace.
void EmitDebugVariable(class Value *value);
// Flush any pending variable bindings before the line ends.
void FlushDebug();
} // namespace rr
# define RR_DEBUG_INFO_UPDATE_LOC() rr::EmitDebugLocation()
# define RR_DEBUG_INFO_EMIT_VAR(value) rr::EmitDebugVariable(value)
# define RR_DEBUG_INFO_FLUSH() rr::FlushDebug()
# define RR_DEBUG_INFO_EMIT_VAR(value)
namespace rr {
int DebugPrintf(const char *format, ...);
// A Clang extension to determine compiler features.
// We use it to detect Sanitizer builds (e.g. -fsanitize=memory).
#ifndef __has_feature
# define __has_feature(x) 0
// Whether Reactor routine instrumentation is enabled for MSan builds.
// TODO(b/155148722): Remove when unconditionally instrumenting for all build systems.
namespace rr {
// These generally map to the precision types as specified by the Vulkan specification.
// See
enum class Precision
/*Exact,*/ // 0 ULP with correct rounding (i.e. Math.h)
Full, // Single precision, but not relaxed
Relaxed, // Single precision, relaxed
/*Half,*/ // Half precision
std::string BackendName();
struct Capabilities
bool CoroutinesSupported; // Support for rr::Coroutine<F>
extern const Capabilities Caps;
class Bool;
class Byte;
class SByte;
class Byte4;
class SByte4;
class Byte8;
class SByte8;
class Byte16;
class SByte16;
class Short;
class UShort;
class Short2;
class UShort2;
class Short4;
class UShort4;
class Short8;
class UShort8;
class Int;
class UInt;
class Int2;
class UInt2;
class Int4;
class UInt4;
class Long;
class Half;
class Float;
class Float2;
class Float4;
class Void
static Type *type();
template<class T>
class RValue;
template<class T>
class Pointer;
class Variable
friend class Nucleus;
Variable() = delete;
Variable &operator=(const Variable &) = delete;
void materialize() const;
Value *loadValue() const;
Value *storeValue(Value *value) const;
Value *getBaseAddress() const;
Value *getElementPointer(Value *index, bool unsignedIndex) const;
Type *getType() const { return type; }
int getArraySize() const { return arraySize; }
// This function is only public for testing purposes, as it affects performance.
// It is not considered part of Reactor's public API.
static void materializeAll();
Variable(Type *type, int arraySize);
Variable(const Variable &) = default;
virtual ~Variable();
static void killUnmaterialized();
// Set of variables that do not have a stack location yet.
class UnmaterializedVariables
void add(const Variable *v);
void remove(const Variable *v);
void clear();
void materializeAll();
int counter = 0;
std::unordered_map<const Variable *, int> variables;
// This has to be a raw pointer because glibc 2.17 doesn't support __cxa_thread_atexit_impl
// for destructing objects at exit. See
static thread_local UnmaterializedVariables *unmaterializedVariables;
Type *const type;
const int arraySize;
mutable Value *rvalue = nullptr;
mutable Value *address = nullptr;
template<class T>
class LValue : public Variable
LValue(int arraySize = 0);
RValue<Pointer<T>> operator&();
RValue<T> load() const
return RValue<T>(this->loadValue());
RValue<T> store(RValue<T> rvalue) const
return rvalue;
// self() returns the this pointer to this LValue<T> object.
// This function exists because operator&() is overloaded.
inline LValue<T> *self() { return this; }
template<class T>
class Reference
using reference_underlying_type = T;
explicit Reference(Value *pointer, int alignment = 1);
RValue<T> operator=(RValue<T> rhs) const;
RValue<T> operator=(const Reference<T> &ref) const;
RValue<T> operator+=(RValue<T> rhs) const;
RValue<Pointer<T>> operator&() const { return RValue<Pointer<T>>(address); }
Value *loadValue() const;
RValue<T> load() const;
int getAlignment() const;
Value *address;
const int alignment;
template<class T>
struct BoolLiteral
struct type;
struct BoolLiteral<Bool>
typedef bool type;
template<class T>
struct IntLiteral
struct type;
struct IntLiteral<Int>
typedef int type;
struct IntLiteral<UInt>
typedef unsigned int type;
struct IntLiteral<Long>
typedef int64_t type;
template<class T>
struct FloatLiteral
struct type;
struct FloatLiteral<Float>
typedef float type;
template<class T>
class RValue
using rvalue_underlying_type = T;
explicit RValue(Value *rvalue);
RValue(const RValue<T> &rvalue);
RValue(const T &lvalue);
RValue(typename BoolLiteral<T>::type i);
RValue(typename IntLiteral<T>::type i);
RValue(typename FloatLiteral<T>::type f);
RValue(const Reference<T> &rhs);
// Rvalues cannot be assigned to: "(a + b) = c;"
RValue<T> &operator=(const RValue<T> &) = delete;
Value *value() const { return val; }
Value *const val;
template<typename T>
class Argument
explicit Argument(Value *val)
: val(val)
RValue<T> rvalue() const { return RValue<T>(val); }
Value *const val;
class Bool : public LValue<Bool>
Bool(Argument<Bool> argument);
Bool() = default;
Bool(bool x);
Bool(RValue<Bool> rhs);
Bool(const Bool &rhs);
Bool(const Reference<Bool> &rhs);
// RValue<Bool> operator=(bool rhs); // FIXME: Implement
RValue<Bool> operator=(RValue<Bool> rhs);
RValue<Bool> operator=(const Bool &rhs);
RValue<Bool> operator=(const Reference<Bool> &rhs);
static Type *type();
RValue<Bool> operator!(RValue<Bool> val);
RValue<Bool> operator&&(RValue<Bool> lhs, RValue<Bool> rhs);
RValue<Bool> operator||(RValue<Bool> lhs, RValue<Bool> rhs);
RValue<Bool> operator!=(RValue<Bool> lhs, RValue<Bool> rhs);
RValue<Bool> operator==(RValue<Bool> lhs, RValue<Bool> rhs);
class Byte : public LValue<Byte>
Byte(Argument<Byte> argument);
explicit Byte(RValue<Int> cast);
explicit Byte(RValue<UInt> cast);
explicit Byte(RValue<UShort> cast);
Byte() = default;
Byte(int x);
Byte(unsigned char x);
Byte(RValue<Byte> rhs);
Byte(const Byte &rhs);
Byte(const Reference<Byte> &rhs);
// RValue<Byte> operator=(unsigned char rhs); // FIXME: Implement
RValue<Byte> operator=(RValue<Byte> rhs);
RValue<Byte> operator=(const Byte &rhs);
RValue<Byte> operator=(const Reference<Byte> &rhs);
static Type *type();
RValue<Byte> operator+(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator-(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator*(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator/(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator%(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator&(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator|(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator^(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator<<(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator>>(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Byte> operator+=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator-=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator*=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator/=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator%=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator&=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator|=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator^=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator<<=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator>>=(Byte &lhs, RValue<Byte> rhs);
RValue<Byte> operator+(RValue<Byte> val);
RValue<Byte> operator-(RValue<Byte> val);
RValue<Byte> operator~(RValue<Byte> val);
RValue<Byte> operator++(Byte &val, int); // Post-increment
const Byte &operator++(Byte &val); // Pre-increment
RValue<Byte> operator--(Byte &val, int); // Post-decrement
const Byte &operator--(Byte &val); // Pre-decrement
RValue<Bool> operator<(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Bool> operator<=(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Bool> operator>(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Bool> operator>=(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Bool> operator!=(RValue<Byte> lhs, RValue<Byte> rhs);
RValue<Bool> operator==(RValue<Byte> lhs, RValue<Byte> rhs);
class SByte : public LValue<SByte>
SByte(Argument<SByte> argument);
explicit SByte(RValue<Int> cast);
explicit SByte(RValue<Short> cast);
SByte() = default;
SByte(signed char x);
SByte(RValue<SByte> rhs);
SByte(const SByte &rhs);
SByte(const Reference<SByte> &rhs);
// RValue<SByte> operator=(signed char rhs); // FIXME: Implement
RValue<SByte> operator=(RValue<SByte> rhs);
RValue<SByte> operator=(const SByte &rhs);
RValue<SByte> operator=(const Reference<SByte> &rhs);
static Type *type();
RValue<SByte> operator+(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator-(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator*(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator/(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator%(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator&(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator|(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator^(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator<<(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator>>(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<SByte> operator+=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator-=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator*=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator/=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator%=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator&=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator|=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator^=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator<<=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator>>=(SByte &lhs, RValue<SByte> rhs);
RValue<SByte> operator+(RValue<SByte> val);
RValue<SByte> operator-(RValue<SByte> val);
RValue<SByte> operator~(RValue<SByte> val);
RValue<SByte> operator++(SByte &val, int); // Post-increment
const SByte &operator++(SByte &val); // Pre-increment
RValue<SByte> operator--(SByte &val, int); // Post-decrement
const SByte &operator--(SByte &val); // Pre-decrement
RValue<Bool> operator<(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<Bool> operator<=(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<Bool> operator>(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<Bool> operator>=(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<Bool> operator!=(RValue<SByte> lhs, RValue<SByte> rhs);
RValue<Bool> operator==(RValue<SByte> lhs, RValue<SByte> rhs);
class Short : public LValue<Short>
Short(Argument<Short> argument);
explicit Short(RValue<Int> cast);
Short() = default;
Short(short x);
Short(RValue<Short> rhs);
Short(const Short &rhs);
Short(const Reference<Short> &rhs);
// RValue<Short> operator=(short rhs); // FIXME: Implement
RValue<Short> operator=(RValue<Short> rhs);
RValue<Short> operator=(const Short &rhs);
RValue<Short> operator=(const Reference<Short> &rhs);
static Type *type();
RValue<Short> operator+(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator-(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator*(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator/(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator%(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator&(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator|(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator^(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator<<(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator>>(RValue<Short> lhs, RValue<Short> rhs);
RValue<Short> operator+=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator-=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator*=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator/=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator%=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator&=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator|=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator^=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator<<=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator>>=(Short &lhs, RValue<Short> rhs);
RValue<Short> operator+(RValue<Short> val);
RValue<Short> operator-(RValue<Short> val);
RValue<Short> operator~(RValue<Short> val);
RValue<Short> operator++(Short &val, int); // Post-increment
const Short &operator++(Short &val); // Pre-increment
RValue<Short> operator--(Short &val, int); // Post-decrement
const Short &operator--(Short &val); // Pre-decrement
RValue<Bool> operator<(RValue<Short> lhs, RValue<Short> rhs);
RValue<Bool> operator<=(RValue<Short> lhs, RValue<Short> rhs);
RValue<Bool> operator>(RValue<Short> lhs, RValue<Short> rhs);
RValue<Bool> operator>=(RValue<Short> lhs, RValue<Short> rhs);
RValue<Bool> operator!=(RValue<Short> lhs, RValue<Short> rhs);
RValue<Bool> operator==(RValue<Short> lhs, RValue<Short> rhs);
class UShort : public LValue<UShort>
UShort(Argument<UShort> argument);
explicit UShort(RValue<UInt> cast);
explicit UShort(RValue<Int> cast);
UShort() = default;
UShort(unsigned short x);
UShort(RValue<UShort> rhs);
UShort(const UShort &rhs);
UShort(const Reference<UShort> &rhs);
// RValue<UShort> operator=(unsigned short rhs); // FIXME: Implement
RValue<UShort> operator=(RValue<UShort> rhs);
RValue<UShort> operator=(const UShort &rhs);
RValue<UShort> operator=(const Reference<UShort> &rhs);
static Type *type();
RValue<UShort> operator+(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator-(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator*(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator/(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator%(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator&(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator|(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator^(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator<<(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator>>(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<UShort> operator+=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator-=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator*=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator/=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator%=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator&=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator|=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator^=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator<<=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator>>=(UShort &lhs, RValue<UShort> rhs);
RValue<UShort> operator+(RValue<UShort> val);
RValue<UShort> operator-(RValue<UShort> val);
RValue<UShort> operator~(RValue<UShort> val);
RValue<UShort> operator++(UShort &val, int); // Post-increment
const UShort &operator++(UShort &val); // Pre-increment
RValue<UShort> operator--(UShort &val, int); // Post-decrement
const UShort &operator--(UShort &val); // Pre-decrement
RValue<Bool> operator<(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<Bool> operator<=(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<Bool> operator>(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<Bool> operator>=(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<Bool> operator!=(RValue<UShort> lhs, RValue<UShort> rhs);
RValue<Bool> operator==(RValue<UShort> lhs, RValue<UShort> rhs);
class Byte4 : public LValue<Byte4>
explicit Byte4(RValue<Byte8> cast);
explicit Byte4(RValue<UShort4> cast);
explicit Byte4(RValue<Short4> cast);
explicit Byte4(RValue<UInt4> cast);
explicit Byte4(RValue<Int4> cast);
Byte4() = default;
// Byte4(int x, int y, int z, int w);
Byte4(RValue<Byte4> rhs);
Byte4(const Byte4 &rhs);
Byte4(const Reference<Byte4> &rhs);
RValue<Byte4> operator=(RValue<Byte4> rhs);
RValue<Byte4> operator=(const Byte4 &rhs);
// RValue<Byte4> operator=(const Reference<Byte4> &rhs);
static Type *type();
// RValue<Byte4> operator+(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator-(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator*(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator/(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator%(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator&(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator|(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator^(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator<<(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator>>(RValue<Byte4> lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator+=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator-=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator*=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator/=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator%=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator&=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator|=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator^=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator<<=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator>>=(Byte4 &lhs, RValue<Byte4> rhs);
// RValue<Byte4> operator+(RValue<Byte4> val);
// RValue<Byte4> operator-(RValue<Byte4> val);
// RValue<Byte4> operator~(RValue<Byte4> val);
// RValue<Byte4> operator++(Byte4 &val, int); // Post-increment
// const Byte4 &operator++(Byte4 &val); // Pre-increment
// RValue<Byte4> operator--(Byte4 &val, int); // Post-decrement
// const Byte4 &operator--(Byte4 &val); // Pre-decrement
class SByte4 : public LValue<SByte4>
SByte4() = default;
// SByte4(int x, int y, int z, int w);
// SByte4(RValue<SByte4> rhs);
// SByte4(const SByte4 &rhs);
// SByte4(const Reference<SByte4> &rhs);
// RValue<SByte4> operator=(RValue<SByte4> rhs);
// RValue<SByte4> operator=(const SByte4 &rhs);
// RValue<SByte4> operator=(const Reference<SByte4> &rhs);
static Type *type();
// RValue<SByte4> operator+(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator-(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator*(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator/(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator%(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator&(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator|(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator^(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator<<(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator>>(RValue<SByte4> lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator+=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator-=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator*=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator/=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator%=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator&=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator|=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator^=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator<<=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator>>=(SByte4 &lhs, RValue<SByte4> rhs);
// RValue<SByte4> operator+(RValue<SByte4> val);
// RValue<SByte4> operator-(RValue<SByte4> val);
// RValue<SByte4> operator~(RValue<SByte4> val);
// RValue<SByte4> operator++(SByte4 &val, int); // Post-increment
// const SByte4 &operator++(SByte4 &val); // Pre-increment
// RValue<SByte4> operator--(SByte4 &val, int); // Post-decrement
// const SByte4 &operator--(SByte4 &val); // Pre-decrement
class Byte8 : public LValue<Byte8>
Byte8() = default;
Byte8(uint8_t x0, uint8_t x1, uint8_t x2, uint8_t x3, uint8_t x4, uint8_t x5, uint8_t x6, uint8_t x7);
Byte8(RValue<Byte8> rhs);
Byte8(const Byte8 &rhs);
Byte8(const Reference<Byte8> &rhs);
RValue<Byte8> operator=(RValue<Byte8> rhs);
RValue<Byte8> operator=(const Byte8 &rhs);
RValue<Byte8> operator=(const Reference<Byte8> &rhs);
static Type *type();
RValue<Byte8> operator+(RValue<Byte8> lhs, RValue<Byte8> rhs);
RValue<Byte8> operator-(RValue<Byte8> lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator*(RValue<Byte8> lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator/(RValue<Byte8> lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator%(RValue<Byte8> lhs, RValue<Byte8> rhs);
RValue<Byte8> operator&(RValue<Byte8> lhs, RValue<Byte8> rhs);
RValue<Byte8> operator|(RValue<Byte8> lhs, RValue<Byte8> rhs);
RValue<Byte8> operator^(RValue<Byte8> lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator<<(RValue<Byte8> lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator>>(RValue<Byte8> lhs, RValue<Byte8> rhs);
RValue<Byte8> operator+=(Byte8 &lhs, RValue<Byte8> rhs);
RValue<Byte8> operator-=(Byte8 &lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator*=(Byte8 &lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator/=(Byte8 &lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator%=(Byte8 &lhs, RValue<Byte8> rhs);
RValue<Byte8> operator&=(Byte8 &lhs, RValue<Byte8> rhs);
RValue<Byte8> operator|=(Byte8 &lhs, RValue<Byte8> rhs);
RValue<Byte8> operator^=(Byte8 &lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator<<=(Byte8 &lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator>>=(Byte8 &lhs, RValue<Byte8> rhs);
// RValue<Byte8> operator+(RValue<Byte8> val);
// RValue<Byte8> operator-(RValue<Byte8> val);
RValue<Byte8> operator~(RValue<Byte8> val);
// RValue<Byte8> operator++(Byte8 &val, int); // Post-increment
// const Byte8 &operator++(Byte8 &val); // Pre-increment
// RValue<Byte8> operator--(Byte8 &val, int); // Post-decrement
// const Byte8 &operator--(Byte8 &val); // Pre-decrement
RValue<Byte8> AddSat(RValue<Byte8> x, RValue<Byte8> y);
RValue<Byte8> SubSat(RValue<Byte8> x, RValue<Byte8> y);
RValue<Short4> Unpack(RValue<Byte4> x);
RValue<Short4> Unpack(RValue<Byte4> x, RValue<Byte4> y);
RValue<Short4> UnpackLow(RValue<Byte8> x, RValue<Byte8> y);
RValue<Short4> UnpackHigh(RValue<Byte8> x, RValue<Byte8> y);
RValue<Int> SignMask(RValue<Byte8> x);
// RValue<Byte8> CmpGT(RValue<Byte8> x, RValue<Byte8> y);
RValue<Byte8> CmpEQ(RValue<Byte8> x, RValue<Byte8> y);
RValue<Byte8> Swizzle(RValue<Byte8> x, uint32_t select);
class SByte8 : public LValue<SByte8>
SByte8() = default;
SByte8(uint8_t x0, uint8_t x1, uint8_t x2, uint8_t x3, uint8_t x4, uint8_t x5, uint8_t x6, uint8_t x7);
SByte8(RValue<SByte8> rhs);
SByte8(const SByte8 &rhs);
SByte8(const Reference<SByte8> &rhs);
RValue<SByte8> operator=(RValue<SByte8> rhs);
RValue<SByte8> operator=(const SByte8 &rhs);
RValue<SByte8> operator=(const Reference<SByte8> &rhs);
static Type *type();
RValue<SByte8> operator+(RValue<SByte8> lhs, RValue<SByte8> rhs);
RValue<SByte8> operator-(RValue<SByte8> lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator*(RValue<SByte8> lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator/(RValue<SByte8> lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator%(RValue<SByte8> lhs, RValue<SByte8> rhs);
RValue<SByte8> operator&(RValue<SByte8> lhs, RValue<SByte8> rhs);
RValue<SByte8> operator|(RValue<SByte8> lhs, RValue<SByte8> rhs);
RValue<SByte8> operator^(RValue<SByte8> lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator<<(RValue<SByte8> lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator>>(RValue<SByte8> lhs, RValue<SByte8> rhs);
RValue<SByte8> operator+=(SByte8 &lhs, RValue<SByte8> rhs);
RValue<SByte8> operator-=(SByte8 &lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator*=(SByte8 &lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator/=(SByte8 &lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator%=(SByte8 &lhs, RValue<SByte8> rhs);
RValue<SByte8> operator&=(SByte8 &lhs, RValue<SByte8> rhs);
RValue<SByte8> operator|=(SByte8 &lhs, RValue<SByte8> rhs);
RValue<SByte8> operator^=(SByte8 &lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator<<=(SByte8 &lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator>>=(SByte8 &lhs, RValue<SByte8> rhs);
// RValue<SByte8> operator+(RValue<SByte8> val);
// RValue<SByte8> operator-(RValue<SByte8> val);
RValue<SByte8> operator~(RValue<SByte8> val);
// RValue<SByte8> operator++(SByte8 &val, int); // Post-increment
// const SByte8 &operator++(SByte8 &val); // Pre-increment
// RValue<SByte8> operator--(SByte8 &val, int); // Post-decrement
// const SByte8 &operator--(SByte8 &val); // Pre-decrement
RValue<SByte8> AddSat(RValue<SByte8> x, RValue<SByte8> y);
RValue<SByte8> SubSat(RValue<SByte8> x, RValue<SByte8> y);
RValue<Short4> UnpackLow(RValue<SByte8> x, RValue<SByte8> y);
RValue<Short4> UnpackHigh(RValue<SByte8> x, RValue<SByte8> y);
RValue<Int> SignMask(RValue<SByte8> x);
RValue<Byte8> CmpGT(RValue<SByte8> x, RValue<SByte8> y);
RValue<Byte8> CmpEQ(RValue<SByte8> x, RValue<SByte8> y);
class Byte16 : public LValue<Byte16>
Byte16() = default;
Byte16(RValue<Byte16> rhs);
Byte16(const Byte16 &rhs);
Byte16(const Reference<Byte16> &rhs);
RValue<Byte16> operator=(RValue<Byte16> rhs);
RValue<Byte16> operator=(const Byte16 &rhs);
RValue<Byte16> operator=(const Reference<Byte16> &rhs);
static Type *type();
// RValue<Byte16> operator+(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator-(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator*(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator/(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator%(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator&(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator|(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator^(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator<<(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator>>(RValue<Byte16> lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator+=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator-=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator*=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator/=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator%=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator&=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator|=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator^=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator<<=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator>>=(Byte16 &lhs, RValue<Byte16> rhs);
// RValue<Byte16> operator+(RValue<Byte16> val);
// RValue<Byte16> operator-(RValue<Byte16> val);
// RValue<Byte16> operator~(RValue<Byte16> val);
// RValue<Byte16> operator++(Byte16 &val, int); // Post-increment
// const Byte16 &operator++(Byte16 &val); // Pre-increment
// RValue<Byte16> operator--(Byte16 &val, int); // Post-decrement
// const Byte16 &operator--(Byte16 &val); // Pre-decrement
RValue<Byte16> Swizzle(RValue<Byte16> x, uint64_t select);
class SByte16 : public LValue<SByte16>
SByte16() = default;
// SByte16(int x, int y, int z, int w);
// SByte16(RValue<SByte16> rhs);
// SByte16(const SByte16 &rhs);
// SByte16(const Reference<SByte16> &rhs);
// RValue<SByte16> operator=(RValue<SByte16> rhs);
// RValue<SByte16> operator=(const SByte16 &rhs);
// RValue<SByte16> operator=(const Reference<SByte16> &rhs);
static Type *type();
// RValue<SByte16> operator+(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator-(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator*(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator/(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator%(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator&(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator|(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator^(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator<<(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator>>(RValue<SByte16> lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator+=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator-=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator*=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator/=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator%=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator&=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator|=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator^=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator<<=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator>>=(SByte16 &lhs, RValue<SByte16> rhs);
// RValue<SByte16> operator+(RValue<SByte16> val);
// RValue<SByte16> operator-(RValue<SByte16> val);
// RValue<SByte16> operator~(RValue<SByte16> val);
// RValue<SByte16> operator++(SByte16 &val, int); // Post-increment
// const SByte16 &operator++(SByte16 &val); // Pre-increment
// RValue<SByte16> operator--(SByte16 &val, int); // Post-decrement
// const SByte16 &operator--(SByte16 &val); // Pre-decrement
class Short2 : public LValue<Short2>
explicit Short2(RValue<Short4> cast);
static Type *type();
class UShort2 : public LValue<UShort2>
explicit UShort2(RValue<UShort4> cast);
static Type *type();
class Short4 : public LValue<Short4>
explicit Short4(RValue<Int> cast);
explicit Short4(RValue<Int4> cast);
// explicit Short4(RValue<Float> cast);
explicit Short4(RValue<Float4> cast);
Short4() = default;
Short4(short xyzw);
Short4(short x, short y, short z, short w);
Short4(RValue<Short4> rhs);
Short4(const Short4 &rhs);
Short4(const Reference<Short4> &rhs);
Short4(RValue<UShort4> rhs);
Short4(const UShort4 &rhs);
Short4(const Reference<UShort4> &rhs);
RValue<Short4> operator=(RValue<Short4> rhs);
RValue<Short4> operator=(const Short4 &rhs);
RValue<Short4> operator=(const Reference<Short4> &rhs);
RValue<Short4> operator=(RValue<UShort4> rhs);
RValue<Short4> operator=(const UShort4 &rhs);
RValue<Short4> operator=(const Reference<UShort4> &rhs);
static Type *type();
RValue<Short4> operator+(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> operator-(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> operator*(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Short4> operator/(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Short4> operator%(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> operator&(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> operator|(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> operator^(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> operator<<(RValue<Short4> lhs, unsigned char rhs);
RValue<Short4> operator>>(RValue<Short4> lhs, unsigned char rhs);
RValue<Short4> operator+=(Short4 &lhs, RValue<Short4> rhs);
RValue<Short4> operator-=(Short4 &lhs, RValue<Short4> rhs);
RValue<Short4> operator*=(Short4 &lhs, RValue<Short4> rhs);
// RValue<Short4> operator/=(Short4 &lhs, RValue<Short4> rhs);
// RValue<Short4> operator%=(Short4 &lhs, RValue<Short4> rhs);
RValue<Short4> operator&=(Short4 &lhs, RValue<Short4> rhs);
RValue<Short4> operator|=(Short4 &lhs, RValue<Short4> rhs);
RValue<Short4> operator^=(Short4 &lhs, RValue<Short4> rhs);
RValue<Short4> operator<<=(Short4 &lhs, unsigned char rhs);
RValue<Short4> operator>>=(Short4 &lhs, unsigned char rhs);
// RValue<Short4> operator+(RValue<Short4> val);
RValue<Short4> operator-(RValue<Short4> val);
RValue<Short4> operator~(RValue<Short4> val);
// RValue<Short4> operator++(Short4 &val, int); // Post-increment
// const Short4 &operator++(Short4 &val); // Pre-increment
// RValue<Short4> operator--(Short4 &val, int); // Post-decrement
// const Short4 &operator--(Short4 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Bool> operator<=(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Bool> operator>(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Bool> operator>=(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Bool> operator!=(RValue<Short4> lhs, RValue<Short4> rhs);
// RValue<Bool> operator==(RValue<Short4> lhs, RValue<Short4> rhs);
RValue<Short4> RoundShort4(RValue<Float4> cast);
RValue<Short4> Max(RValue<Short4> x, RValue<Short4> y);
RValue<Short4> Min(RValue<Short4> x, RValue<Short4> y);
RValue<Short4> AddSat(RValue<Short4> x, RValue<Short4> y);
RValue<Short4> SubSat(RValue<Short4> x, RValue<Short4> y);
RValue<Short4> MulHigh(RValue<Short4> x, RValue<Short4> y);
RValue<Int2> MulAdd(RValue<Short4> x, RValue<Short4> y);
RValue<SByte8> PackSigned(RValue<Short4> x, RValue<Short4> y);
RValue<Byte8> PackUnsigned(RValue<Short4> x, RValue<Short4> y);
RValue<Int2> UnpackLow(RValue<Short4> x, RValue<Short4> y);
RValue<Int2> UnpackHigh(RValue<Short4> x, RValue<Short4> y);
RValue<Short4> Swizzle(RValue<Short4> x, uint16_t select);
RValue<Short4> Insert(RValue<Short4> val, RValue<Short> element, int i);
RValue<Short> Extract(RValue<Short4> val, int i);
RValue<Short4> CmpGT(RValue<Short4> x, RValue<Short4> y);
RValue<Short4> CmpEQ(RValue<Short4> x, RValue<Short4> y);
class UShort4 : public LValue<UShort4>
explicit UShort4(RValue<Int4> cast);
explicit UShort4(RValue<Float4> cast, bool saturate = false);
UShort4() = default;
UShort4(unsigned short xyzw);
UShort4(unsigned short x, unsigned short y, unsigned short z, unsigned short w);
UShort4(RValue<UShort4> rhs);
UShort4(const UShort4 &rhs);
UShort4(const Reference<UShort4> &rhs);
UShort4(RValue<Short4> rhs);
UShort4(const Short4 &rhs);
UShort4(const Reference<Short4> &rhs);
RValue<UShort4> operator=(RValue<UShort4> rhs);
RValue<UShort4> operator=(const UShort4 &rhs);
RValue<UShort4> operator=(const Reference<UShort4> &rhs);
RValue<UShort4> operator=(RValue<Short4> rhs);
RValue<UShort4> operator=(const Short4 &rhs);
RValue<UShort4> operator=(const Reference<Short4> &rhs);
static Type *type();
RValue<UShort4> operator+(RValue<UShort4> lhs, RValue<UShort4> rhs);
RValue<UShort4> operator-(RValue<UShort4> lhs, RValue<UShort4> rhs);
RValue<UShort4> operator*(RValue<UShort4> lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator/(RValue<UShort4> lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator%(RValue<UShort4> lhs, RValue<UShort4> rhs);
RValue<UShort4> operator&(RValue<UShort4> lhs, RValue<UShort4> rhs);
RValue<UShort4> operator|(RValue<UShort4> lhs, RValue<UShort4> rhs);
RValue<UShort4> operator^(RValue<UShort4> lhs, RValue<UShort4> rhs);
RValue<UShort4> operator<<(RValue<UShort4> lhs, unsigned char rhs);
RValue<UShort4> operator>>(RValue<UShort4> lhs, unsigned char rhs);
// RValue<UShort4> operator+=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator-=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator*=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator/=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator%=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator&=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator|=(UShort4 &lhs, RValue<UShort4> rhs);
// RValue<UShort4> operator^=(UShort4 &lhs, RValue<UShort4> rhs);
RValue<UShort4> operator<<=(UShort4 &lhs, unsigned char rhs);
RValue<UShort4> operator>>=(UShort4 &lhs, unsigned char rhs);
// RValue<UShort4> operator+(RValue<UShort4> val);
// RValue<UShort4> operator-(RValue<UShort4> val);
RValue<UShort4> operator~(RValue<UShort4> val);
// RValue<UShort4> operator++(UShort4 &val, int); // Post-increment
// const UShort4 &operator++(UShort4 &val); // Pre-increment
// RValue<UShort4> operator--(UShort4 &val, int); // Post-decrement
// const UShort4 &operator--(UShort4 &val); // Pre-decrement
RValue<UShort4> Max(RValue<UShort4> x, RValue<UShort4> y);
RValue<UShort4> Min(RValue<UShort4> x, RValue<UShort4> y);
RValue<UShort4> AddSat(RValue<UShort4> x, RValue<UShort4> y);
RValue<UShort4> SubSat(RValue<UShort4> x, RValue<UShort4> y);
RValue<UShort4> MulHigh(RValue<UShort4> x, RValue<UShort4> y);
RValue<UShort4> Average(RValue<UShort4> x, RValue<UShort4> y);
class Short8 : public LValue<Short8>
Short8() = default;
Short8(short c);
Short8(short c0, short c1, short c2, short c3, short c4, short c5, short c6, short c7);
Short8(RValue<Short8> rhs);
// Short8(const Short8 &rhs);
Short8(const Reference<Short8> &rhs);
Short8(RValue<Short4> lo, RValue<Short4> hi);
RValue<Short8> operator=(RValue<Short8> rhs);
RValue<Short8> operator=(const Short8 &rhs);
RValue<Short8> operator=(const Reference<Short8> &rhs);
static Type *type();
RValue<Short8> operator+(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator-(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator*(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator/(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator%(RValue<Short8> lhs, RValue<Short8> rhs);
RValue<Short8> operator&(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator|(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator^(RValue<Short8> lhs, RValue<Short8> rhs);
RValue<Short8> operator<<(RValue<Short8> lhs, unsigned char rhs);
RValue<Short8> operator>>(RValue<Short8> lhs, unsigned char rhs);
// RValue<Short8> operator<<(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator>>(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Short8> operator+=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator-=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator*=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator/=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator%=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator&=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator|=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator^=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator<<=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator>>=(Short8 &lhs, RValue<Short8> rhs);
// RValue<Short8> operator+(RValue<Short8> val);
// RValue<Short8> operator-(RValue<Short8> val);
// RValue<Short8> operator~(RValue<Short8> val);
// RValue<Short8> operator++(Short8 &val, int); // Post-increment
// const Short8 &operator++(Short8 &val); // Pre-increment
// RValue<Short8> operator--(Short8 &val, int); // Post-decrement
// const Short8 &operator--(Short8 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Bool> operator<=(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Bool> operator>(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Bool> operator>=(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Bool> operator!=(RValue<Short8> lhs, RValue<Short8> rhs);
// RValue<Bool> operator==(RValue<Short8> lhs, RValue<Short8> rhs);
RValue<Short8> MulHigh(RValue<Short8> x, RValue<Short8> y);
RValue<Int4> MulAdd(RValue<Short8> x, RValue<Short8> y);
RValue<Int4> Abs(RValue<Int4> x);
class UShort8 : public LValue<UShort8>
UShort8() = default;
UShort8(unsigned short c);
UShort8(unsigned short c0, unsigned short c1, unsigned short c2, unsigned short c3, unsigned short c4, unsigned short c5, unsigned short c6, unsigned short c7);
UShort8(RValue<UShort8> rhs);
// UShort8(const UShort8 &rhs);
UShort8(const Reference<UShort8> &rhs);
UShort8(RValue<UShort4> lo, RValue<UShort4> hi);
RValue<UShort8> operator=(RValue<UShort8> rhs);
RValue<UShort8> operator=(const UShort8 &rhs);
RValue<UShort8> operator=(const Reference<UShort8> &rhs);
static Type *type();
RValue<UShort8> operator+(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator-(RValue<UShort8> lhs, RValue<UShort8> rhs);
RValue<UShort8> operator*(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator/(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator%(RValue<UShort8> lhs, RValue<UShort8> rhs);
RValue<UShort8> operator&(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator|(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator^(RValue<UShort8> lhs, RValue<UShort8> rhs);
RValue<UShort8> operator<<(RValue<UShort8> lhs, unsigned char rhs);
RValue<UShort8> operator>>(RValue<UShort8> lhs, unsigned char rhs);
// RValue<UShort8> operator<<(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator>>(RValue<UShort8> lhs, RValue<UShort8> rhs);
RValue<UShort8> operator+=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator-=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator*=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator/=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator%=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator&=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator|=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator^=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator<<=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator>>=(UShort8 &lhs, RValue<UShort8> rhs);
// RValue<UShort8> operator+(RValue<UShort8> val);
// RValue<UShort8> operator-(RValue<UShort8> val);
RValue<UShort8> operator~(RValue<UShort8> val);
// RValue<UShort8> operator++(UShort8 &val, int); // Post-increment
// const UShort8 &operator++(UShort8 &val); // Pre-increment
// RValue<UShort8> operator--(UShort8 &val, int); // Post-decrement
// const UShort8 &operator--(UShort8 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<Bool> operator<=(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<Bool> operator>(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<Bool> operator>=(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<Bool> operator!=(RValue<UShort8> lhs, RValue<UShort8> rhs);
// RValue<Bool> operator==(RValue<UShort8> lhs, RValue<UShort8> rhs);
RValue<UShort8> Swizzle(RValue<UShort8> x, uint32_t select);
RValue<UShort8> MulHigh(RValue<UShort8> x, RValue<UShort8> y);
class Int : public LValue<Int>
Int(Argument<Int> argument);
explicit Int(RValue<Byte> cast);
explicit Int(RValue<SByte> cast);
explicit Int(RValue<Short> cast);
explicit Int(RValue<UShort> cast);
explicit Int(RValue<Int2> cast);
explicit Int(RValue<Long> cast);
explicit Int(RValue<Float> cast);
Int() = default;
Int(int x);
Int(RValue<Int> rhs);
Int(RValue<UInt> rhs);
Int(const Int &rhs);
Int(const UInt &rhs);
Int(const Reference<Int> &rhs);
Int(const Reference<UInt> &rhs);
RValue<Int> operator=(int rhs);
RValue<Int> operator=(RValue<Int> rhs);
RValue<Int> operator=(RValue<UInt> rhs);
RValue<Int> operator=(const Int &rhs);
RValue<Int> operator=(const UInt &rhs);
RValue<Int> operator=(const Reference<Int> &rhs);
RValue<Int> operator=(const Reference<UInt> &rhs);
static Type *type();
RValue<Int> operator+(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator-(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator*(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator/(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator%(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator&(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator|(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator^(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator<<(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator>>(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> operator+=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator-=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator*=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator/=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator%=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator&=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator|=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator^=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator<<=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator>>=(Int &lhs, RValue<Int> rhs);
RValue<Int> operator+(RValue<Int> val);
RValue<Int> operator-(RValue<Int> val);
RValue<Int> operator~(RValue<Int> val);
RValue<Int> operator++(Int &val, int); // Post-increment
const Int &operator++(Int &val); // Pre-increment
RValue<Int> operator--(Int &val, int); // Post-decrement
const Int &operator--(Int &val); // Pre-decrement
RValue<Bool> operator<(RValue<Int> lhs, RValue<Int> rhs);
RValue<Bool> operator<=(RValue<Int> lhs, RValue<Int> rhs);
RValue<Bool> operator>(RValue<Int> lhs, RValue<Int> rhs);
RValue<Bool> operator>=(RValue<Int> lhs, RValue<Int> rhs);
RValue<Bool> operator!=(RValue<Int> lhs, RValue<Int> rhs);
RValue<Bool> operator==(RValue<Int> lhs, RValue<Int> rhs);
RValue<Int> Max(RValue<Int> x, RValue<Int> y);
RValue<Int> Min(RValue<Int> x, RValue<Int> y);
RValue<Int> Clamp(RValue<Int> x, RValue<Int> min, RValue<Int> max);
RValue<Int> RoundInt(RValue<Float> cast);
class Long : public LValue<Long>
// Long(Argument<Long> argument);
// explicit Long(RValue<Short> cast);
// explicit Long(RValue<UShort> cast);
explicit Long(RValue<Int> cast);
explicit Long(RValue<UInt> cast);
// explicit Long(RValue<Float> cast);
Long() = default;
// Long(qword x);
Long(RValue<Long> rhs);
// Long(RValue<ULong> rhs);
// Long(const Long &rhs);
// Long(const Reference<Long> &rhs);
// Long(const ULong &rhs);
// Long(const Reference<ULong> &rhs);
RValue<Long> operator=(int64_t rhs);
RValue<Long> operator=(RValue<Long> rhs);
// RValue<Long> operator=(RValue<ULong> rhs);
RValue<Long> operator=(const Long &rhs);
RValue<Long> operator=(const Reference<Long> &rhs);
// RValue<Long> operator=(const ULong &rhs);
// RValue<Long> operator=(const Reference<ULong> &rhs);
static Type *type();
RValue<Long> operator+(RValue<Long> lhs, RValue<Long> rhs);
RValue<Long> operator-(RValue<Long> lhs, RValue<Long> rhs);
RValue<Long> operator*(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> operator/(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> operator%(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> operator&(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> operator|(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> operator^(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> operator<<(RValue<Long> lhs, RValue<Long> rhs);
RValue<Long> operator>>(RValue<Long> lhs, RValue<Long> rhs);
RValue<Long> operator+=(Long &lhs, RValue<Long> rhs);
RValue<Long> operator-=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator*=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator/=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator%=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator&=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator|=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator^=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator<<=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator>>=(Long &lhs, RValue<Long> rhs);
// RValue<Long> operator+(RValue<Long> val);
// RValue<Long> operator-(RValue<Long> val);
// RValue<Long> operator~(RValue<Long> val);
// RValue<Long> operator++(Long &val, int); // Post-increment
// const Long &operator++(Long &val); // Pre-increment
// RValue<Long> operator--(Long &val, int); // Post-decrement
// const Long &operator--(Long &val); // Pre-decrement
// RValue<Bool> operator<(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Bool> operator<=(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Bool> operator>(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Bool> operator>=(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Bool> operator!=(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Bool> operator==(RValue<Long> lhs, RValue<Long> rhs);
// RValue<Long> RoundLong(RValue<Float> cast);
RValue<Long> AddAtomic(RValue<Pointer<Long>> x, RValue<Long> y);
class UInt : public LValue<UInt>
UInt(Argument<UInt> argument);
explicit UInt(RValue<UShort> cast);
explicit UInt(RValue<Long> cast);
explicit UInt(RValue<Float> cast);
UInt() = default;
UInt(int x);
UInt(unsigned int x);
UInt(RValue<UInt> rhs);
UInt(RValue<Int> rhs);
UInt(const UInt &rhs);
UInt(const Int &rhs);
UInt(const Reference<UInt> &rhs);
UInt(const Reference<Int> &rhs);
RValue<UInt> operator=(unsigned int rhs);
RValue<UInt> operator=(RValue<UInt> rhs);
RValue<UInt> operator=(RValue<Int> rhs);
RValue<UInt> operator=(const UInt &rhs);
RValue<UInt> operator=(const Int &rhs);
RValue<UInt> operator=(const Reference<UInt> &rhs);
RValue<UInt> operator=(const Reference<Int> &rhs);
static Type *type();
RValue<UInt> operator+(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator-(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator*(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator/(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator%(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator&(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator|(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator^(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator<<(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator>>(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> operator+=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator-=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator*=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator/=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator%=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator&=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator|=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator^=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator<<=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator>>=(UInt &lhs, RValue<UInt> rhs);
RValue<UInt> operator+(RValue<UInt> val);
RValue<UInt> operator-(RValue<UInt> val);
RValue<UInt> operator~(RValue<UInt> val);
RValue<UInt> operator++(UInt &val, int); // Post-increment
const UInt &operator++(UInt &val); // Pre-increment
RValue<UInt> operator--(UInt &val, int); // Post-decrement
const UInt &operator--(UInt &val); // Pre-decrement
RValue<Bool> operator<(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<Bool> operator<=(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<Bool> operator>(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<Bool> operator>=(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<Bool> operator!=(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<Bool> operator==(RValue<UInt> lhs, RValue<UInt> rhs);
RValue<UInt> Max(RValue<UInt> x, RValue<UInt> y);
RValue<UInt> Min(RValue<UInt> x, RValue<UInt> y);
RValue<UInt> Clamp(RValue<UInt> x, RValue<UInt> min, RValue<UInt> max);
RValue<UInt> AddAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> SubAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> AndAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> OrAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> XorAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<Int> MinAtomic(RValue<Pointer<Int>> x, RValue<Int> y, std::memory_order memoryOrder);
RValue<Int> MaxAtomic(RValue<Pointer<Int>> x, RValue<Int> y, std::memory_order memoryOrder);
RValue<UInt> MinAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> MaxAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> ExchangeAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
RValue<UInt> CompareExchangeAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, RValue<UInt> compare, std::memory_order memoryOrderEqual, std::memory_order memoryOrderUnequal);
// RValue<UInt> RoundUInt(RValue<Float> cast);
class Int2 : public LValue<Int2>
// explicit Int2(RValue<Int> cast);
explicit Int2(RValue<Int4> cast);
Int2() = default;
Int2(int x, int y);
Int2(RValue<Int2> rhs);
Int2(const Int2 &rhs);
Int2(const Reference<Int2> &rhs);
Int2(RValue<Int> lo, RValue<Int> hi);
RValue<Int2> operator=(RValue<Int2> rhs);
RValue<Int2> operator=(const Int2 &rhs);
RValue<Int2> operator=(const Reference<Int2> &rhs);
static Type *type();
RValue<Int2> operator+(RValue<Int2> lhs, RValue<Int2> rhs);
RValue<Int2> operator-(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Int2> operator*(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Int2> operator/(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Int2> operator%(RValue<Int2> lhs, RValue<Int2> rhs);
RValue<Int2> operator&(RValue<Int2> lhs, RValue<Int2> rhs);
RValue<Int2> operator|(RValue<Int2> lhs, RValue<Int2> rhs);
RValue<Int2> operator^(RValue<Int2> lhs, RValue<Int2> rhs);
RValue<Int2> operator<<(RValue<Int2> lhs, unsigned char rhs);
RValue<Int2> operator>>(RValue<Int2> lhs, unsigned char rhs);
RValue<Int2> operator+=(Int2 &lhs, RValue<Int2> rhs);
RValue<Int2> operator-=(Int2 &lhs, RValue<Int2> rhs);
// RValue<Int2> operator*=(Int2 &lhs, RValue<Int2> rhs);
// RValue<Int2> operator/=(Int2 &lhs, RValue<Int2> rhs);
// RValue<Int2> operator%=(Int2 &lhs, RValue<Int2> rhs);
RValue<Int2> operator&=(Int2 &lhs, RValue<Int2> rhs);
RValue<Int2> operator|=(Int2 &lhs, RValue<Int2> rhs);
RValue<Int2> operator^=(Int2 &lhs, RValue<Int2> rhs);
RValue<Int2> operator<<=(Int2 &lhs, unsigned char rhs);
RValue<Int2> operator>>=(Int2 &lhs, unsigned char rhs);
// RValue<Int2> operator+(RValue<Int2> val);
// RValue<Int2> operator-(RValue<Int2> val);
RValue<Int2> operator~(RValue<Int2> val);
// RValue<Int2> operator++(Int2 &val, int); // Post-increment
// const Int2 &operator++(Int2 &val); // Pre-increment
// RValue<Int2> operator--(Int2 &val, int); // Post-decrement
// const Int2 &operator--(Int2 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Bool> operator<=(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Bool> operator>(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Bool> operator>=(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Bool> operator!=(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Bool> operator==(RValue<Int2> lhs, RValue<Int2> rhs);
// RValue<Int2> RoundInt(RValue<Float4> cast);
RValue<Short4> UnpackLow(RValue<Int2> x, RValue<Int2> y);
RValue<Short4> UnpackHigh(RValue<Int2> x, RValue<Int2> y);
RValue<Int> Extract(RValue<Int2> val, int i);
RValue<Int2> Insert(RValue<Int2> val, RValue<Int> element, int i);
class UInt2 : public LValue<UInt2>
UInt2() = default;
UInt2(unsigned int x, unsigned int y);
UInt2(RValue<UInt2> rhs);
UInt2(const UInt2 &rhs);
UInt2(const Reference<UInt2> &rhs);
RValue<UInt2> operator=(RValue<UInt2> rhs);
RValue<UInt2> operator=(const UInt2 &rhs);
RValue<UInt2> operator=(const Reference<UInt2> &rhs);
static Type *type();
RValue<UInt2> operator+(RValue<UInt2> lhs, RValue<UInt2> rhs);
RValue<UInt2> operator-(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<UInt2> operator*(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<UInt2> operator/(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<UInt2> operator%(RValue<UInt2> lhs, RValue<UInt2> rhs);
RValue<UInt2> operator&(RValue<UInt2> lhs, RValue<UInt2> rhs);
RValue<UInt2> operator|(RValue<UInt2> lhs, RValue<UInt2> rhs);
RValue<UInt2> operator^(RValue<UInt2> lhs, RValue<UInt2> rhs);
RValue<UInt2> operator<<(RValue<UInt2> lhs, unsigned char rhs);
RValue<UInt2> operator>>(RValue<UInt2> lhs, unsigned char rhs);
RValue<UInt2> operator+=(UInt2 &lhs, RValue<UInt2> rhs);
RValue<UInt2> operator-=(UInt2 &lhs, RValue<UInt2> rhs);
// RValue<UInt2> operator*=(UInt2 &lhs, RValue<UInt2> rhs);
// RValue<UInt2> operator/=(UInt2 &lhs, RValue<UInt2> rhs);
// RValue<UInt2> operator%=(UInt2 &lhs, RValue<UInt2> rhs);
RValue<UInt2> operator&=(UInt2 &lhs, RValue<UInt2> rhs);
RValue<UInt2> operator|=(UInt2 &lhs, RValue<UInt2> rhs);
RValue<UInt2> operator^=(UInt2 &lhs, RValue<UInt2> rhs);
RValue<UInt2> operator<<=(UInt2 &lhs, unsigned char rhs);
RValue<UInt2> operator>>=(UInt2 &lhs, unsigned char rhs);
// RValue<UInt2> operator+(RValue<UInt2> val);
// RValue<UInt2> operator-(RValue<UInt2> val);
RValue<UInt2> operator~(RValue<UInt2> val);
// RValue<UInt2> operator++(UInt2 &val, int); // Post-increment
// const UInt2 &operator++(UInt2 &val); // Pre-increment
// RValue<UInt2> operator--(UInt2 &val, int); // Post-decrement
// const UInt2 &operator--(UInt2 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<Bool> operator<=(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<Bool> operator>(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<Bool> operator>=(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<Bool> operator!=(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<Bool> operator==(RValue<UInt2> lhs, RValue<UInt2> rhs);
// RValue<UInt2> RoundInt(RValue<Float4> cast);
RValue<UInt> Extract(RValue<UInt2> val, int i);
RValue<UInt2> Insert(RValue<UInt2> val, RValue<UInt> element, int i);
template<class T>
struct Scalar;
template<class Vector4>
struct XYZW;
template<class Vector4, int T>
class Swizzle2
friend Vector4;
operator RValue<Vector4>() const;
Vector4 *parent;
template<class Vector4, int T>
class Swizzle4
operator RValue<Vector4>() const;
Vector4 *parent;
template<class Vector4, int T>
class SwizzleMask4
friend XYZW<Vector4>;
operator RValue<Vector4>() const;
RValue<Vector4> operator=(RValue<Vector4> rhs);
RValue<Vector4> operator=(RValue<typename Scalar<Vector4>::Type> rhs);
Vector4 *parent;
struct Scalar<Float4>
using Type = Float;
struct Scalar<Int4>
using Type = Int;
struct Scalar<UInt4>
using Type = UInt;
template<class Vector4, int T>
class SwizzleMask1
operator RValue<typename Scalar<Vector4>::Type>() const;
operator RValue<Vector4>() const;
RValue<Vector4> operator=(float x);
RValue<Vector4> operator=(RValue<Vector4> rhs);
RValue<Vector4> operator=(RValue<typename Scalar<Vector4>::Type> rhs);
Vector4 *parent;
template<class Vector4, int T>
class SwizzleMask2
friend class Float4;
operator RValue<Vector4>() const;
RValue<Vector4> operator=(RValue<Vector4> rhs);
Float4 *parent;
template<class Vector4>
struct XYZW
friend Vector4;
XYZW(Vector4 *parent)
xyzw.parent = parent;
SwizzleMask1<Vector4, 0x0000> x;
SwizzleMask1<Vector4, 0x1111> y;
SwizzleMask1<Vector4, 0x2222> z;
SwizzleMask1<Vector4, 0x3333> w;
Swizzle2<Vector4, 0x0000> xx;
Swizzle2<Vector4, 0x1000> yx;
Swizzle2<Vector4, 0x2000> zx;
Swizzle2<Vector4, 0x3000> wx;
SwizzleMask2<Vector4, 0x0111> xy;
Swizzle2<Vector4, 0x1111> yy;
Swizzle2<Vector4, 0x2111> zy;
Swizzle2<Vector4, 0x3111> wy;
SwizzleMask2<Vector4, 0x0222> xz;
SwizzleMask2<Vector4, 0x1222> yz;
Swizzle2<Vector4, 0x2222> zz;
Swizzle2<Vector4, 0x3222> wz;
SwizzleMask2<Vector4, 0x0333> xw;
SwizzleMask2<Vector4, 0x1333> yw;
SwizzleMask2<Vector4, 0x2333> zw;
Swizzle2<Vector4, 0x3333> ww;
Swizzle4<Vector4, 0x0000> xxx;
Swizzle4<Vector4, 0x1000> yxx;
Swizzle4<Vector4, 0x2000> zxx;
Swizzle4<Vector4, 0x3000> wxx;
Swizzle4<Vector4, 0x0100> xyx;
Swizzle4<Vector4, 0x1100> yyx;
Swizzle4<Vector4, 0x2100> zyx;
Swizzle4<Vector4, 0x3100> wyx;
Swizzle4<Vector4, 0x0200> xzx;
Swizzle4<Vector4, 0x1200> yzx;
Swizzle4<Vector4, 0x2200> zzx;
Swizzle4<Vector4, 0x3200> wzx;
Swizzle4<Vector4, 0x0300> xwx;
Swizzle4<Vector4, 0x1300> ywx;
Swizzle4<Vector4, 0x2300> zwx;
Swizzle4<Vector4, 0x3300> wwx;
Swizzle4<Vector4, 0x0011> xxy;
Swizzle4<Vector4, 0x1011> yxy;
Swizzle4<Vector4, 0x2011> zxy;
Swizzle4<Vector4, 0x3011> wxy;
Swizzle4<Vector4, 0x0111> xyy;
Swizzle4<Vector4, 0x1111> yyy;
Swizzle4<Vector4, 0x2111> zyy;
Swizzle4<Vector4, 0x3111> wyy;
Swizzle4<Vector4, 0x0211> xzy;
Swizzle4<Vector4, 0x1211> yzy;
Swizzle4<Vector4, 0x2211> zzy;
Swizzle4<Vector4, 0x3211> wzy;
Swizzle4<Vector4, 0x0311> xwy;
Swizzle4<Vector4, 0x1311> ywy;
Swizzle4<Vector4, 0x2311> zwy;
Swizzle4<Vector4, 0x3311> wwy;
Swizzle4<Vector4, 0x0022> xxz;
Swizzle4<Vector4, 0x1022> yxz;
Swizzle4<Vector4, 0x2022> zxz;
Swizzle4<Vector4, 0x3022> wxz;
SwizzleMask4<Vector4, 0x0122> xyz;
Swizzle4<Vector4, 0x1122> yyz;
Swizzle4<Vector4, 0x2122> zyz;
Swizzle4<Vector4, 0x3122> wyz;
Swizzle4<Vector4, 0x0222> xzz;
Swizzle4<Vector4, 0x1222> yzz;
Swizzle4<Vector4, 0x2222> zzz;
Swizzle4<Vector4, 0x3222> wzz;
Swizzle4<Vector4, 0x0322> xwz;
Swizzle4<Vector4, 0x1322> ywz;
Swizzle4<Vector4, 0x2322> zwz;
Swizzle4<Vector4, 0x3322> wwz;
Swizzle4<Vector4, 0x0033> xxw;
Swizzle4<Vector4, 0x1033> yxw;
Swizzle4<Vector4, 0x2033> zxw;
Swizzle4<Vector4, 0x3033> wxw;
SwizzleMask4<Vector4, 0x0133> xyw;
Swizzle4<Vector4, 0x1133> yyw;
Swizzle4<Vector4, 0x2133> zyw;
Swizzle4<Vector4, 0x3133> wyw;
SwizzleMask4<Vector4, 0x0233> xzw;
SwizzleMask4<Vector4, 0x1233> yzw;
Swizzle4<Vector4, 0x2233> zzw;
Swizzle4<Vector4, 0x3233> wzw;
Swizzle4<Vector4, 0x0333> xww;
Swizzle4<Vector4, 0x1333> yww;
Swizzle4<Vector4, 0x2333> zww;
Swizzle4<Vector4, 0x3333> www;
Swizzle4<Vector4, 0x0000> xxxx;
Swizzle4<Vector4, 0x1000> yxxx;
Swizzle4<Vector4, 0x2000> zxxx;
Swizzle4<Vector4, 0x3000> wxxx;
Swizzle4<Vector4, 0x0100> xyxx;
Swizzle4<Vector4, 0x1100> yyxx;
Swizzle4<Vector4, 0x2100> zyxx;
Swizzle4<Vector4, 0x3100> wyxx;
Swizzle4<Vector4, 0x0200> xzxx;
Swizzle4<Vector4, 0x1200> yzxx;
Swizzle4<Vector4, 0x2200> zzxx;
Swizzle4<Vector4, 0x3200> wzxx;
Swizzle4<Vector4, 0x0300> xwxx;
Swizzle4<Vector4, 0x1300> ywxx;
Swizzle4<Vector4, 0x2300> zwxx;
Swizzle4<Vector4, 0x3300> wwxx;
Swizzle4<Vector4, 0x0010> xxyx;
Swizzle4<Vector4, 0x1010> yxyx;
Swizzle4<Vector4, 0x2010> zxyx;
Swizzle4<Vector4, 0x3010> wxyx;
Swizzle4<Vector4, 0x0110> xyyx;
Swizzle4<Vector4, 0x1110> yyyx;
Swizzle4<Vector4, 0x2110> zyyx;
Swizzle4<Vector4, 0x3110> wyyx;
Swizzle4<Vector4, 0x0210> xzyx;
Swizzle4<Vector4, 0x1210> yzyx;
Swizzle4<Vector4, 0x2210> zzyx;
Swizzle4<Vector4, 0x3210> wzyx;
Swizzle4<Vector4, 0x0310> xwyx;
Swizzle4<Vector4, 0x1310> ywyx;
Swizzle4<Vector4, 0x2310> zwyx;
Swizzle4<Vector4, 0x3310> wwyx;
Swizzle4<Vector4, 0x0020> xxzx;
Swizzle4<Vector4, 0x1020> yxzx;
Swizzle4<Vector4, 0x2020> zxzx;
Swizzle4<Vector4, 0x3020> wxzx;
Swizzle4<Vector4, 0x0120> xyzx;
Swizzle4<Vector4, 0x1120> yyzx;
Swizzle4<Vector4, 0x2120> zyzx;
Swizzle4<Vector4, 0x3120> wyzx;
Swizzle4<Vector4, 0x0220> xzzx;
Swizzle4<Vector4, 0x1220> yzzx;
Swizzle4<Vector4, 0x2220> zzzx;
Swizzle4<Vector4, 0x3220> wzzx;
Swizzle4<Vector4, 0x0320> xwzx;
Swizzle4<Vector4, 0x1320> ywzx;
Swizzle4<Vector4, 0x2320> zwzx;
Swizzle4<Vector4, 0x3320> wwzx;
Swizzle4<Vector4, 0x0030> xxwx;
Swizzle4<Vector4, 0x1030> yxwx;
Swizzle4<Vector4, 0x2030> zxwx;
Swizzle4<Vector4, 0x3030> wxwx;
Swizzle4<Vector4, 0x0130> xywx;
Swizzle4<Vector4, 0x1130> yywx;
Swizzle4<Vector4, 0x2130> zywx;
Swizzle4<Vector4, 0x3130> wywx;
Swizzle4<Vector4, 0x0230> xzwx;
Swizzle4<Vector4, 0x1230> yzwx;
Swizzle4<Vector4, 0x2230> zzwx;
Swizzle4<Vector4, 0x3230> wzwx;
Swizzle4<Vector4, 0x0330> xwwx;
Swizzle4<Vector4, 0x1330> ywwx;
Swizzle4<Vector4, 0x2330> zwwx;
Swizzle4<Vector4, 0x3330> wwwx;
Swizzle4<Vector4, 0x0001> xxxy;
Swizzle4<Vector4, 0x1001> yxxy;
Swizzle4<Vector4, 0x2001> zxxy;
Swizzle4<Vector4, 0x3001> wxxy;
Swizzle4<Vector4, 0x0101> xyxy;
Swizzle4<Vector4, 0x1101> yyxy;
Swizzle4<Vector4, 0x2101> zyxy;
Swizzle4<Vector4, 0x3101> wyxy;
Swizzle4<Vector4, 0x0201> xzxy;
Swizzle4<Vector4, 0x1201> yzxy;
Swizzle4<Vector4, 0x2201> zzxy;
Swizzle4<Vector4, 0x3201> wzxy;
Swizzle4<Vector4, 0x0301> xwxy;
Swizzle4<Vector4, 0x1301> ywxy;
Swizzle4<Vector4, 0x2301> zwxy;
Swizzle4<Vector4, 0x3301> wwxy;
Swizzle4<Vector4, 0x0011> xxyy;
Swizzle4<Vector4, 0x1011> yxyy;
Swizzle4<Vector4, 0x2011> zxyy;
Swizzle4<Vector4, 0x3011> wxyy;
Swizzle4<Vector4, 0x0111> xyyy;
Swizzle4<Vector4, 0x1111> yyyy;
Swizzle4<Vector4, 0x2111> zyyy;
Swizzle4<Vector4, 0x3111> wyyy;
Swizzle4<Vector4, 0x0211> xzyy;
Swizzle4<Vector4, 0x1211> yzyy;
Swizzle4<Vector4, 0x2211> zzyy;
Swizzle4<Vector4, 0x3211> wzyy;
Swizzle4<Vector4, 0x0311> xwyy;
Swizzle4<Vector4, 0x1311> ywyy;
Swizzle4<Vector4, 0x2311> zwyy;
Swizzle4<Vector4, 0x3311> wwyy;
Swizzle4<Vector4, 0x0021> xxzy;
Swizzle4<Vector4, 0x1021> yxzy;
Swizzle4<Vector4, 0x2021> zxzy;
Swizzle4<Vector4, 0x3021> wxzy;
Swizzle4<Vector4, 0x0121> xyzy;
Swizzle4<Vector4, 0x1121> yyzy;
Swizzle4<Vector4, 0x2121> zyzy;
Swizzle4<Vector4, 0x3121> wyzy;
Swizzle4<Vector4, 0x0221> xzzy;
Swizzle4<Vector4, 0x1221> yzzy;
Swizzle4<Vector4, 0x2221> zzzy;
Swizzle4<Vector4, 0x3221> wzzy;
Swizzle4<Vector4, 0x0321> xwzy;
Swizzle4<Vector4, 0x1321> ywzy;
Swizzle4<Vector4, 0x2321> zwzy;
Swizzle4<Vector4, 0x3321> wwzy;
Swizzle4<Vector4, 0x0031> xxwy;
Swizzle4<Vector4, 0x1031> yxwy;
Swizzle4<Vector4, 0x2031> zxwy;
Swizzle4<Vector4, 0x3031> wxwy;
Swizzle4<Vector4, 0x0131> xywy;
Swizzle4<Vector4, 0x1131> yywy;
Swizzle4<Vector4, 0x2131> zywy;
Swizzle4<Vector4, 0x3131> wywy;
Swizzle4<Vector4, 0x0231> xzwy;
Swizzle4<Vector4, 0x1231> yzwy;
Swizzle4<Vector4, 0x2231> zzwy;
Swizzle4<Vector4, 0x3231> wzwy;
Swizzle4<Vector4, 0x0331> xwwy;
Swizzle4<Vector4, 0x1331> ywwy;
Swizzle4<Vector4, 0x2331> zwwy;
Swizzle4<Vector4, 0x3331> wwwy;
Swizzle4<Vector4, 0x0002> xxxz;
Swizzle4<Vector4, 0x1002> yxxz;
Swizzle4<Vector4, 0x2002> zxxz;
Swizzle4<Vector4, 0x3002> wxxz;
Swizzle4<Vector4, 0x0102> xyxz;
Swizzle4<Vector4, 0x1102> yyxz;
Swizzle4<Vector4, 0x2102> zyxz;
Swizzle4<Vector4, 0x3102> wyxz;
Swizzle4<Vector4, 0x0202> xzxz;
Swizzle4<Vector4, 0x1202> yzxz;
Swizzle4<Vector4, 0x2202> zzxz;
Swizzle4<Vector4, 0x3202> wzxz;
Swizzle4<Vector4, 0x0302> xwxz;
Swizzle4<Vector4, 0x1302> ywxz;
Swizzle4<Vector4, 0x2302> zwxz;
Swizzle4<Vector4, 0x3302> wwxz;
Swizzle4<Vector4, 0x0012> xxyz;
Swizzle4<Vector4, 0x1012> yxyz;
Swizzle4<Vector4, 0x2012> zxyz;
Swizzle4<Vector4, 0x3012> wxyz;
Swizzle4<Vector4, 0x0112> xyyz;
Swizzle4<Vector4, 0x1112> yyyz;
Swizzle4<Vector4, 0x2112> zyyz;
Swizzle4<Vector4, 0x3112> wyyz;
Swizzle4<Vector4, 0x0212> xzyz;
Swizzle4<Vector4, 0x1212> yzyz;
Swizzle4<Vector4, 0x2212> zzyz;
Swizzle4<Vector4, 0x3212> wzyz;
Swizzle4<Vector4, 0x0312> xwyz;
Swizzle4<Vector4, 0x1312> ywyz;
Swizzle4<Vector4, 0x2312> zwyz;
Swizzle4<Vector4, 0x3312> wwyz;
Swizzle4<Vector4, 0x0022> xxzz;
Swizzle4<Vector4, 0x1022> yxzz;
Swizzle4<Vector4, 0x2022> zxzz;
Swizzle4<Vector4, 0x3022> wxzz;
Swizzle4<Vector4, 0x0122> xyzz;
Swizzle4<Vector4, 0x1122> yyzz;
Swizzle4<Vector4, 0x2122> zyzz;
Swizzle4<Vector4, 0x3122> wyzz;
Swizzle4<Vector4, 0x0222> xzzz;
Swizzle4<Vector4, 0x1222> yzzz;
Swizzle4<Vector4, 0x2222> zzzz;
Swizzle4<Vector4, 0x3222> wzzz;
Swizzle4<Vector4, 0x0322> xwzz;
Swizzle4<Vector4, 0x1322> ywzz;
Swizzle4<Vector4, 0x2322> zwzz;
Swizzle4<Vector4, 0x3322> wwzz;
Swizzle4<Vector4, 0x0032> xxwz;
Swizzle4<Vector4, 0x1032> yxwz;
Swizzle4<Vector4, 0x2032> zxwz;
Swizzle4<Vector4, 0x3032> wxwz;
Swizzle4<Vector4, 0x0132> xywz;
Swizzle4<Vector4, 0x1132> yywz;
Swizzle4<Vector4, 0x2132> zywz;
Swizzle4<Vector4, 0x3132> wywz;
Swizzle4<Vector4, 0x0232> xzwz;
Swizzle4<Vector4, 0x1232> yzwz;
Swizzle4<Vector4, 0x2232> zzwz;
Swizzle4<Vector4, 0x3232> wzwz;
Swizzle4<Vector4, 0x0332> xwwz;
Swizzle4<Vector4, 0x1332> ywwz;
Swizzle4<Vector4, 0x2332> zwwz;
Swizzle4<Vector4, 0x3332> wwwz;
Swizzle4<Vector4, 0x0003> xxxw;
Swizzle4<Vector4, 0x1003> yxxw;
Swizzle4<Vector4, 0x2003> zxxw;
Swizzle4<Vector4, 0x3003> wxxw;
Swizzle4<Vector4, 0x0103> xyxw;
Swizzle4<Vector4, 0x1103> yyxw;
Swizzle4<Vector4, 0x2103> zyxw;
Swizzle4<Vector4, 0x3103> wyxw;
Swizzle4<Vector4, 0x0203> xzxw;
Swizzle4<Vector4, 0x1203> yzxw;
Swizzle4<Vector4, 0x2203> zzxw;
Swizzle4<Vector4, 0x3203> wzxw;
Swizzle4<Vector4, 0x0303> xwxw;
Swizzle4<Vector4, 0x1303> ywxw;
Swizzle4<Vector4, 0x2303> zwxw;
Swizzle4<Vector4, 0x3303> wwxw;
Swizzle4<Vector4, 0x0013> xxyw;
Swizzle4<Vector4, 0x1013> yxyw;
Swizzle4<Vector4, 0x2013> zxyw;
Swizzle4<Vector4, 0x3013> wxyw;
Swizzle4<Vector4, 0x0113> xyyw;
Swizzle4<Vector4, 0x1113> yyyw;
Swizzle4<Vector4, 0x2113> zyyw;
Swizzle4<Vector4, 0x3113> wyyw;
Swizzle4<Vector4, 0x0213> xzyw;
Swizzle4<Vector4, 0x1213> yzyw;
Swizzle4<Vector4, 0x2213> zzyw;
Swizzle4<Vector4, 0x3213> wzyw;
Swizzle4<Vector4, 0x0313> xwyw;
Swizzle4<Vector4, 0x1313> ywyw;
Swizzle4<Vector4, 0x2313> zwyw;
Swizzle4<Vector4, 0x3313> wwyw;
Swizzle4<Vector4, 0x0023> xxzw;
Swizzle4<Vector4, 0x1023> yxzw;
Swizzle4<Vector4, 0x2023> zxzw;
Swizzle4<Vector4, 0x3023> wxzw;
SwizzleMask4<Vector4, 0x0123> xyzw;
Swizzle4<Vector4, 0x1123> yyzw;
Swizzle4<Vector4, 0x2123> zyzw;
Swizzle4<Vector4, 0x3123> wyzw;
Swizzle4<Vector4, 0x0223> xzzw;
Swizzle4<Vector4, 0x1223> yzzw;
Swizzle4<Vector4, 0x2223> zzzw;
Swizzle4<Vector4, 0x3223> wzzw;
Swizzle4<Vector4, 0x0323> xwzw;
Swizzle4<Vector4, 0x1323> ywzw;
Swizzle4<Vector4, 0x2323> zwzw;
Swizzle4<Vector4, 0x3323> wwzw;
Swizzle4<Vector4, 0x0033> xxww;
Swizzle4<Vector4, 0x1033> yxww;
Swizzle4<Vector4, 0x2033> zxww;
Swizzle4<Vector4, 0x3033> wxww;
Swizzle4<Vector4, 0x0133> xyww;
Swizzle4<Vector4, 0x1133> yyww;
Swizzle4<Vector4, 0x2133> zyww;
Swizzle4<Vector4, 0x3133> wyww;
Swizzle4<Vector4, 0x0233> xzww;
Swizzle4<Vector4, 0x1233> yzww;
Swizzle4<Vector4, 0x2233> zzww;
Swizzle4<Vector4, 0x3233> wzww;
Swizzle4<Vector4, 0x0333> xwww;
Swizzle4<Vector4, 0x1333> ywww;
Swizzle4<Vector4, 0x2333> zwww;
Swizzle4<Vector4, 0x3333> wwww;
class Int4 : public LValue<Int4>, public XYZW<Int4>
explicit Int4(RValue<Byte4> cast);
explicit Int4(RValue<SByte4> cast);
explicit Int4(RValue<Float4> cast);
explicit Int4(RValue<Short4> cast);
explicit Int4(RValue<UShort4> cast);
Int4(int xyzw);
Int4(int x, int yzw);
Int4(int x, int y, int zw);
Int4(int x, int y, int z, int w);
Int4(RValue<Int4> rhs);
Int4(const Int4 &rhs);
Int4(const Reference<Int4> &rhs);
Int4(RValue<UInt4> rhs);
Int4(const UInt4 &rhs);
Int4(const Reference<UInt4> &rhs);
Int4(RValue<Int2> lo, RValue<Int2> hi);
Int4(RValue<Int> rhs);
Int4(const Int &rhs);
Int4(const Reference<Int> &rhs);
RValue<Int4> operator=(RValue<Int4> rhs);
RValue<Int4> operator=(const Int4 &rhs);
RValue<Int4> operator=(const Reference<Int4> &rhs);
static Type *type();
void constant(int x, int y, int z, int w);
RValue<Int4> operator+(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator-(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator*(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator/(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator%(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator&(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator|(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator^(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator<<(RValue<Int4> lhs, unsigned char rhs);
RValue<Int4> operator>>(RValue<Int4> lhs, unsigned char rhs);
RValue<Int4> operator<<(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator>>(RValue<Int4> lhs, RValue<Int4> rhs);
RValue<Int4> operator+=(Int4 &lhs, RValue<Int4> rhs);
RValue<Int4> operator-=(Int4 &lhs, RValue<Int4> rhs);
RValue<Int4> operator*=(Int4 &lhs, RValue<Int4> rhs);
// RValue<Int4> operator/=(Int4 &lhs, RValue<Int4> rhs);
// RValue<Int4> operator%=(Int4 &lhs, RValue<Int4> rhs);
RValue<Int4> operator&=(Int4 &lhs, RValue<Int4> rhs);
RValue<Int4> operator|=(Int4 &lhs, RValue<Int4> rhs);
RValue<Int4> operator^=(Int4 &lhs, RValue<Int4> rhs);
RValue<Int4> operator<<=(Int4 &lhs, unsigned char rhs);
RValue<Int4> operator>>=(Int4 &lhs, unsigned char rhs);
RValue<Int4> operator+(RValue<Int4> val);
RValue<Int4> operator-(RValue<Int4> val);
RValue<Int4> operator~(RValue<Int4> val);
// RValue<Int4> operator++(Int4 &val, int); // Post-increment
// const Int4 &operator++(Int4 &val); // Pre-increment
// RValue<Int4> operator--(Int4 &val, int); // Post-decrement
// const Int4 &operator--(Int4 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<Int4> lhs, RValue<Int4> rhs);
// RValue<Bool> operator<=(RValue<Int4> lhs, RValue<Int4> rhs);
// RValue<Bool> operator>(RValue<Int4> lhs, RValue<Int4> rhs);
// RValue<Bool> operator>=(RValue<Int4> lhs, RValue<Int4> rhs);
// RValue<Bool> operator!=(RValue<Int4> lhs, RValue<Int4> rhs);
// RValue<Bool> operator==(RValue<Int4> lhs, RValue<Int4> rhs);
inline RValue<Int4> operator+(RValue<Int> lhs, RValue<Int4> rhs)
return Int4(lhs) + rhs;
inline RValue<Int4> operator+(RValue<Int4> lhs, RValue<Int> rhs)
return lhs + Int4(rhs);
RValue<Int4> CmpEQ(RValue<Int4> x, RValue<Int4> y);
RValue<Int4> CmpLT(RValue<Int4> x, RValue<Int4> y);
RValue<Int4> CmpLE(RValue<Int4> x, RValue<Int4> y);
RValue<Int4> CmpNEQ(RValue<Int4> x, RValue<Int4> y);
RValue<Int4> CmpNLT(RValue<Int4> x, RValue<Int4> y);
RValue<Int4> CmpNLE(RValue<Int4> x, RValue<Int4> y);
inline RValue<Int4> CmpGT(RValue<Int4> x, RValue<Int4> y)
return CmpNLE(x, y);
inline RValue<Int4> CmpGE(RValue<Int4> x, RValue<Int4> y)
return CmpNLT(x, y);
RValue<Int4> Max(RValue<Int4> x, RValue<Int4> y);
RValue<Int4> Min(RValue<Int4> x, RValue<Int4> y);
// Convert to nearest integer. If a converted value is outside of the integer
// range, the returned result is undefined.
RValue<Int4> RoundInt(RValue<Float4> cast);
// Rounds to the nearest integer, but clamps very large values to an
// implementation-dependent range.
// Specifically, on x86, values larger than 2147483583.0 are converted to
// 2147483583 (0x7FFFFFBF) instead of producing 0x80000000.
RValue<Int4> RoundIntClamped(RValue<Float4> cast);
RValue<Short8> PackSigned(RValue<Int4> x, RValue<Int4> y);
RValue<UShort8> PackUnsigned(RValue<Int4> x, RValue<Int4> y);
RValue<Int> Extract(RValue<Int4> val, int i);
RValue<Int4> Insert(RValue<Int4> val, RValue<Int> element, int i);
RValue<Int> SignMask(RValue<Int4> x);
RValue<Int4> Swizzle(RValue<Int4> x, uint16_t select);
RValue<Int4> Shuffle(RValue<Int4> x, RValue<Int4> y, uint16_t select);
RValue<Int4> MulHigh(RValue<Int4> x, RValue<Int4> y);
class UInt4 : public LValue<UInt4>, public XYZW<UInt4>
explicit UInt4(RValue<Float4> cast);
UInt4(int xyzw);
UInt4(int x, int yzw);
UInt4(int x, int y, int zw);
UInt4(int x, int y, int z, int w);
UInt4(RValue<UInt4> rhs);
UInt4(const UInt4 &rhs);
UInt4(const Reference<UInt4> &rhs);
UInt4(RValue<Int4> rhs);
UInt4(const Int4 &rhs);
UInt4(const Reference<Int4> &rhs);
UInt4(RValue<UInt2> lo, RValue<UInt2> hi);
UInt4(RValue<UInt> rhs);
UInt4(const UInt &rhs);
UInt4(const Reference<UInt> &rhs);
RValue<UInt4> operator=(RValue<UInt4> rhs);
RValue<UInt4> operator=(const UInt4 &rhs);
RValue<UInt4> operator=(const Reference<UInt4> &rhs);
static Type *type();
void constant(int x, int y, int z, int w);
RValue<UInt4> operator+(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator-(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator*(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator/(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator%(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator&(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator|(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator^(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator<<(RValue<UInt4> lhs, unsigned char rhs);
RValue<UInt4> operator>>(RValue<UInt4> lhs, unsigned char rhs);
RValue<UInt4> operator<<(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator>>(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> operator+=(UInt4 &lhs, RValue<UInt4> rhs);
RValue<UInt4> operator-=(UInt4 &lhs, RValue<UInt4> rhs);
RValue<UInt4> operator*=(UInt4 &lhs, RValue<UInt4> rhs);
// RValue<UInt4> operator/=(UInt4 &lhs, RValue<UInt4> rhs);
// RValue<UInt4> operator%=(UInt4 &lhs, RValue<UInt4> rhs);
RValue<UInt4> operator&=(UInt4 &lhs, RValue<UInt4> rhs);
RValue<UInt4> operator|=(UInt4 &lhs, RValue<UInt4> rhs);
RValue<UInt4> operator^=(UInt4 &lhs, RValue<UInt4> rhs);
RValue<UInt4> operator<<=(UInt4 &lhs, unsigned char rhs);
RValue<UInt4> operator>>=(UInt4 &lhs, unsigned char rhs);
RValue<UInt4> operator+(RValue<UInt4> val);
RValue<UInt4> operator-(RValue<UInt4> val);
RValue<UInt4> operator~(RValue<UInt4> val);
// RValue<UInt4> operator++(UInt4 &val, int); // Post-increment
// const UInt4 &operator++(UInt4 &val); // Pre-increment
// RValue<UInt4> operator--(UInt4 &val, int); // Post-decrement
// const UInt4 &operator--(UInt4 &val); // Pre-decrement
// RValue<Bool> operator<(RValue<UInt4> lhs, RValue<UInt4> rhs);
// RValue<Bool> operator<=(RValue<UInt4> lhs, RValue<UInt4> rhs);
// RValue<Bool> operator>(RValue<UInt4> lhs, RValue<UInt4> rhs);
// RValue<Bool> operator>=(RValue<UInt4> lhs, RValue<UInt4> rhs);
// RValue<Bool> operator!=(RValue<UInt4> lhs, RValue<UInt4> rhs);
// RValue<Bool> operator==(RValue<UInt4> lhs, RValue<UInt4> rhs);
RValue<UInt4> CmpEQ(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> CmpLT(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> CmpLE(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> CmpNEQ(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> CmpNLT(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> CmpNLE(RValue<UInt4> x, RValue<UInt4> y);
inline RValue<UInt4> CmpGT(RValue<UInt4> x, RValue<UInt4> y)
return CmpNLE(x, y);
inline RValue<UInt4> CmpGE(RValue<UInt4> x, RValue<UInt4> y)
return CmpNLT(x, y);
RValue<UInt4> Max(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> Min(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt4> MulHigh(RValue<UInt4> x, RValue<UInt4> y);
RValue<UInt> Extract(RValue<UInt4> val, int i);
RValue<UInt4> Insert(RValue<UInt4> val, RValue<UInt> element, int i);
// RValue<UInt4> RoundInt(RValue<Float4> cast);
RValue<UInt4> Swizzle(RValue<UInt4> x, uint16_t select);
RValue<UInt4> Shuffle(RValue<UInt4> x, RValue<UInt4> y, uint16_t select);
class Half : public LValue<Half>
explicit Half(RValue<Float> cast);
static Type *type();
class Float : public LValue<Float>
explicit Float(RValue<Int> cast);
explicit Float(RValue<UInt> cast);
explicit Float(RValue<Half> cast);
Float() = default;
Float(float x);
Float(RValue<Float> rhs);
Float(const Float &rhs);
Float(const Reference<Float> &rhs);
Float(Argument<Float> argument);
template<int T>
Float(const SwizzleMask1<Float4, T> &rhs);
RValue<Float> operator=(float rhs);
RValue<Float> operator=(RValue<Float> rhs);
RValue<Float> operator=(const Float &rhs);
RValue<Float> operator=(const Reference<Float> &rhs);
template<int T>
RValue<Float> operator=(const SwizzleMask1<Float4, T> &rhs);
static Float infinity();
static Type *type();
RValue<Float> operator+(RValue<Float> lhs, RValue<Float> rhs);
RValue<Float> operator-(RValue<Float> lhs, RValue<Float> rhs);
RValue<Float> operator*(RValue<Float> lhs, RValue<Float> rhs);
RValue<Float> operator/(RValue<Float> lhs, RValue<Float> rhs);
RValue<Float> operator+=(Float &lhs, RValue<Float> rhs);
RValue<Float> operator-=(Float &lhs, RValue<Float> rhs);
RValue<Float> operator*=(Float &lhs, RValue<Float> rhs);
RValue<Float> operator/=(Float &lhs, RValue<Float> rhs);
RValue<Float> operator+(RValue<Float> val);
RValue<Float> operator-(