name string | code string | asm string | file string |
|---|---|---|---|
diligent_spirv_cross::SmallVector<std::unique_ptr<diligent_spirv_cross::SPIRString, diligent_spirv_cross::ObjectPool<diligent_spirv_cross::SPIRString>::MallocDeleter>, 8ul>::SmallVector() | SmallVector() SPIRV_CROSS_NOEXCEPT
{
this->ptr = stack_storage.data();
buffer_capacity = N;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x3d8d40
movq -0x18(%rbp), %rdi
movq $0x0, 0x10(%rdi)
addq $0x18, %rdi
callq 0x3c0890
movq %rax, -0x10(%rbp)
jmp 0x3d8c44
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, (%rax)
movq $0x8, 0x10(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/SPIRV-Cross/spirv_cross_containers.hpp |
ShLinkExt | int ShLinkExt(
const ShHandle linkHandle,
const ShHandle compHandles[],
const int numHandles)
{
if (linkHandle == nullptr || numHandles == 0)
return 0;
THandleList cObjects;
for (int i = 0; i < numHandles; ++i) {
if (compHandles[i] == nullptr)
return 0;
TShH... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3dd323
cmpl $0x0, -0x1c(%rbp)
jne 0x3dd32f
movl $0x0, -0x4(%rbp)
jmp 0x3dd514
leaq -0x40(%rbp), %rdi
callq 0x3e6ac0
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x1c(%rbp),... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/ShaderLang.cpp |
(anonymous namespace)::DeduceVersionProfile(TInfoSink&, EShLanguage, bool, int, glslang::EShSource, int&, EProfile&, glslang::SpvVersion const&) | bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNotFirst, int defaultVersion,
EShSource source, int& version, EProfile& profile, const SpvVersion& spvVersion)
{
const int FirstProfileVersion = 150;
bool correct = true;
if (source == EShSourceHlsl) {
... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb %dl, %al
movq 0x18(%rbp), %rdx
movq 0x10(%rbp), %rdx
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movl $0x96, -0x2c(%rbp)
movb $0x1, -0x2d(%rbp)
cmpl $0x2, -0x20(%rb... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/ShaderLang.cpp |
(anonymous namespace)::SourceLineSynchronizer::syncToLine(int) | bool syncToLine(int tokenLine) {
syncToMostRecentString();
const bool newLineStarted = lastLine < tokenLine;
for (; lastLine < tokenLine; ++lastLine) {
if (lastLine > 0) *output += '\n';
}
return newLineStarted;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x3e4ba0
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0xc(%rbp), %eax
setl %al
andb $0x1, %al
movb %al, -0xd(%rbp)
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0xc(%rbp)... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/ShaderLang.cpp |
glslang::TIntermediate::setShiftBindingForSet(glslang::TResourceType, unsigned int, unsigned int) | void setShiftBindingForSet(TResourceType res, unsigned int shift, unsigned int set)
{
if (shift == 0) // ignore if there's no shift: it's a no-op.
return;
shiftBindingForSet[res][set] = shift;
const char* name = getResourceName(res);
if (name != nullptr) {
p... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x10(%rbp)
jne 0x3e6f55
jmp 0x3e6fd4
movq -0x28(%rbp), %rdi
movl -0x10(%rbp), %eax
movl %eax, -0x2c(%rbp)
addq $0x398, %rdi ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/localintermediate.h |
glslang::TQualifier::clear() | void clear()
{
precision = EpqNone;
invariant = false;
makeTemporary();
declaredBuiltIn = EbvNone;
noContraction = false;
nullInit = false;
spirvByReference = false;
spirvLiteral = false;
defaultBlock = false;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
movq 0x8(%rdi), %rax
andq $-0xe000001, %rax # imm = 0xF1FFFFFF
orq $0x0, %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rdi), %rax
andq $-0x10000001, %rax # imm = 0xEFFFFFFF
orq $0x0, %rax
movq %rax, 0x8(%rdi)... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/Types.h |
glslang::TType::deepCopy(glslang::TType const&, glslang::TMap<glslang::TVector<glslang::TTypeLoc>*, glslang::TVector<glslang::TTypeLoc>*, std::less<glslang::TVector<glslang::TTypeLoc>*>>&) | void deepCopy(const TType& copyOf, TMap<TTypeList*,TTypeList*>& copiedMap)
{
shallowCopy(copyOf);
// GL_EXT_spirv_intrinsics
if (copyOf.qualifier.spirvDecorate) {
qualifier.spirvDecorate = new TSpirvDecorate;
*qualifier.spirvDecorate = *copyOf.qualifier.spirvDecorate... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movq -0x10(%rbp), %rsi
callq 0x3f5630
movq -0x10(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x407846
movl $0xa8, %edi
callq 0x407c90
movq %rax, %rdi
movq %rdi, -0x60(%rb... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/Types.h |
glslang::TParseVersions::checkDeprecated(glslang::TSourceLoc const&, int, int, char const*) | void TParseVersions::checkDeprecated(const TSourceLoc& loc, int profileMask, int depVersion, const char* featureDesc)
{
if (profile & profileMask) {
if (version >= depVersion) {
if (forwardCompatible)
error(loc, "deprecated, may be removed in future release", featureDesc, "");
... | pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl 0xc(%rax), %eax
andl -0x14(%rbp), %eax
cmpl $0x0, %eax
je 0x4182bd
movq -0xf8(%rbp), %r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/Versions.cpp |
glslang::TParseVersions::extensionTurnedOn(char const*) | bool TParseVersions::extensionTurnedOn(const char* const extension)
{
switch (getExtensionBehavior(extension)) {
case EBhEnable:
case EBhRequire:
case EBhWarn:
return true;
default:
break;
}
return false;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
decl %eax
subl $0x2, %eax
ja 0x418890
jmp 0x41888a
movb $0x1, -0x1(%rbp)
jmp 0x418896
jmp 0x418892
movb $0x0, -0x1(%rbp)
movb -0x1(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/Versions.cpp |
glslang::TParseVersions::int16ScalarVectorCheck(glslang::TSourceLoc const&, char const*, bool) | void TParseVersions::int16ScalarVectorCheck(const TSourceLoc& loc, const char* op, bool builtIn)
{
if (! builtIn) {
const char* const extensions[] = {
E_GL_AMD_gpu_shader_int16,
E_GL_EXT_shader_16bit_storage,
... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x41a050
movq -0x48(%rbp), %rdi
movq 0xbbef2c(%rip), %rax # 0xfd8f40
movq %rax, -... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/Versions.cpp |
glslang::TInfoSinkBase::location(glslang::TSourceLoc const&, bool, bool) | void location(const TSourceLoc& loc, bool absolute = false, bool displayColumn = false) {
const int maxSize = 24;
char locText[maxSize];
if (displayColumn) {
snprintf(locText, maxSize, ":%d:%d", loc.line, loc.column);
} else {
snprintf(locText, maxSize, ":%d", loc... | pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movb %cl, %al
movb %dl, %cl
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %cl
movb %cl, -0x11(%rbp)
andb $0x1, %al
movb %al, -0x12(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
movl $0x18, -0x18(%rbp)
testb $0x1, -0x12(%rbp)
je 0x41ad... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/InfoSink.h |
glslang::TQualifier::getInterlockOrderingString(glslang::TInterlockOrdering) | static const char* getInterlockOrderingString(TInterlockOrdering order)
{
switch (order) {
case EioPixelInterlockOrdered: return "pixel_interlock_ordered";
case EioPixelInterlockUnordered: return "pixel_interlock_unordered";
case EioSampleInterlockOrdered: ret... | pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0x5, %eax
ja 0x4267a9
movq -0x18(%rbp), %rax
leaq 0x735f5a(%rip), %rcx # 0xb5c6ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x739732(%rip), %rax # 0xb5fe94
movq %rax, -0x8... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/Types.h |
glslang::TIntermediate::mergeBlockDefinitions(TInfoSink&, glslang::TIntermSymbol*, glslang::TIntermSymbol*, glslang::TIntermediate*)::TMergeBlockTraverser::visitBinary(glslang::TVisit, glslang::TIntermBinary*) | virtual bool visitBinary(TVisit, glslang::TIntermBinary* node)
{
if (!unit || !newType || !memberIndexUpdates || memberIndexUpdates->empty())
return true;
if (node->getOp() == EOpIndexDirectStruct && node->getLeft()->getType() == *newType) {
// this is a ... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, 0x48(%rax)
je 0x432cab
movq -0x40(%rbp), %rax
cmpq $0x0, 0x40(%rax)
je 0x432cab
movq -0x40(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x432cab
movq -0x40(%r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/linkValidate.cpp |
glslang::TLiveTraverser::pushFunction(std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&) | void pushFunction(const TString& name)
{
TIntermSequence& globals = intermediate.getTreeRoot()->getAsAggregate()->getSequence();
for (unsigned int f = 0; f < globals.size(); ++f) {
TIntermAggregate* candidate = globals[f]->getAsAggregate();
if (candidate && candidate->getOp()... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x50(%rax), %rdi
callq 0x3e6890
movq %rax, %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq %rax, %rdi
movq (%rdi), %rax
callq *0x190(%rax)
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/LiveTraverser.h |
glslang::TRemapIdTraverser::visitSymbol(glslang::TIntermSymbol*) | virtual void visitSymbol(TIntermSymbol* symbol)
{
const TQualifier& qualifier = symbol->getType().getQualifier();
bool remapped = false;
if (qualifier.isLinkable() || qualifier.builtIn != EbvNone) {
TShaderInterface si = symbol->getType().getShaderInterface();
auto it... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0xf0(%rax)
movq %rax, %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
movq -0x18(%rbp), %rdi
callq ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/linkValidate.cpp |
glslang::TConstUnionArray::operator==(glslang::TConstUnionArray const&) const | bool operator==(const TConstUnionArray& rhs) const
{
// this includes the case that both are unallocated
if (unionArray == rhs.unionArray)
return true;
if (! unionArray || ! rhs.unionArray)
return false;
return *unionArray == *rhs.unionArray;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x43d76c
movb $0x1, -0x1(%rbp)
jmp 0x43d7a2
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x43d782
movq -0x18(%rbp... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/ConstantUnion.h |
glslang::TType::adoptImplicitArraySizes(bool) | void adoptImplicitArraySizes(bool skipNonvariablyIndexed)
{
if (isUnsizedArray() &&
(qualifier.builtIn == EbvSampleMask ||
!(skipNonvariablyIndexed || isArrayVariablyIndexed()))) {
changeOuterArraySize(getImplicitArraySize());
setImplicitlySized(true);
... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq (%rdi), %rax
callq *0xf8(%rax)
testb $0x1, %al
jne 0x43df2b
jmp 0x43df83
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
shrq $0x7, %rax
andq $0x1ff, %rax ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/Types.h |
glslang::TArraySizes::clearInnerUnsized() | bool clearInnerUnsized()
{
for (int d = 1; d < sizes.size(); ++d) {
if (sizes.getDimSize(d) == (unsigned)UnsizedArraySize)
setDimSize(d, 1);
}
return false;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x1, -0xc(%rbp)
movq -0x18(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
callq 0x3f6f20
movl %eax, %ecx
movl -0x1c(%rbp), %eax
cmpl %ecx, %eax
jge 0x43e152
movq -0x18(%rbp), %rdi
movl -0xc(%rb... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/arrays.h |
glslang::TReflectionTraverser::visitBinary(glslang::TVisit, glslang::TIntermBinary*) | bool TReflectionTraverser::visitBinary(TVisit /* visit */, TIntermBinary* node)
{
switch (node->getOp()) {
case EOpIndexDirect:
case EOpIndexIndirect:
case EOpIndexDirectStruct:
addDereferencedUniform(node);
break;
default:
break;
}
// still need to visit everything ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x425d60
addl $-0x33, %eax
subl $0x2, %eax
ja 0x44778d
jmp 0x44777e
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4484c0
jmp 0x... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/reflection.cpp |
glslang::TReflection::addStage(EShLanguage, glslang::TIntermediate const&) | bool TReflection::addStage(EShLanguage stage, const TIntermediate& intermediate)
{
if (intermediate.getTreeRoot() == nullptr ||
intermediate.getNumEntryPoints() != 1 ||
intermediate.isRecursive())
return false;
buildAttributeReflection(stage, intermediate);
TReflectionTraverser it(... | pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x20(%rbp), %rdi
callq 0x3e6890
cmpq $0x0, %rax
je 0x447e1d
movq -0x20(%rbp), %rdi
callq 0x434cb0
cmpl $0x1, %eax
jne 0x447e1d
mo... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/reflection.cpp |
glslang::TReflectionTraverser::addDereferencedUniform(glslang::TIntermBinary*) | void addDereferencedUniform(TIntermBinary* topNode)
{
// See if too fine-grained to process (wait to get further down the tree)
const TType& leftType = topNode->getLeft()->getType();
if ((leftType.isVector() || leftType.isMatrix()) && ! leftType.isArray())
return;
// We ... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *0x190(%rax)
movq %rax, %rdi
movq (%rdi), %rax
callq *0xf0(%rax)
movq %rax, -0x20(%rbp)
movq -0x20(... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/reflection.cpp |
glslang::TReflectionTraverser::countAggregateMembers(glslang::TType const&) | int countAggregateMembers(const TType& parentType)
{
if (! parentType.isStruct())
return 1;
const bool strictArraySuffix = (reflection.options & EShReflectionStrictArraySuffix);
bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == Ev... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *0x128(%rax)
testb $0x1, %al
jne 0x44b825
movl $0x1, -0x4(%rbp)
jmp 0x44b961
movq -0x50(%rbp), %rax
movq 0x40(%rax), %rax
movl 0x8(%rax),... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/reflection.cpp |
glslang::TPpContext::scanToken(glslang::TPpToken*) | int scanToken(TPpToken* ppToken)
{
int token = EndOfInput;
while (! inputStack.empty()) {
token = inputStack.back()->scan(ppToken);
if (token != EndOfInput || inputStack.empty())
break;
popInput();
}
if (!inputStack.empty() && inpu... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
movq -0x30(%rbp), %rdi
addq $0x188, %rdi # imm = 0x188
callq 0x451200
xorb $-0x1, %al
testb $0x1, %al
jne 0x4574b7
jmp 0x45750... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/preprocessor/PpContext.h |
glslang::TInputScanner::advance() | void advance()
{
++currentChar;
if (currentChar >= lengths[currentSource]) {
++currentSource;
if (currentSource < numSources) {
loc[currentSource].string = loc[currentSource - 1].string + 1;
loc[currentSource].line = 1;
loc[curr... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movq %rdx, -0x10(%rbp)
movq 0x28(%rdx), %rax
addq $0x1, %rax
movq %rax, 0x28(%rdx)
movq 0x28(%rdx), %rax
movq 0x18(%rdx), %rcx
movslq 0x20(%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
jb 0x458c48
movq -0x10(%rbp), %rcx
movl 0x20(%rcx), %eax
addl $0x1, %eax
... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/Scan.h |
glslang::HlslParseContext::handleLvalue(glslang::TSourceLoc const&, char const*, glslang::TIntermTyped*&) | TIntermTyped* HlslParseContext::handleLvalue(const TSourceLoc& loc, const char* op, TIntermTyped*& node)
{
if (node == nullptr)
return nullptr;
TIntermBinary* nodeAsBinary = node->getAsBinaryNode();
TIntermUnary* nodeAsUnary = node->getAsUnaryNode();
TIntermAggregate* sequence = nullptr;
T... | pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x459b5d
movq $0x0, -0x8(%rbp)
jmp 0x45a359
movq -0x28(%rbp), %rax... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::getTextureReturnType(glslang::TSampler const&, glslang::TType&) const | void HlslParseContext::getTextureReturnType(const TSampler& sampler, TType& retType) const
{
if (sampler.hasReturnStruct()) {
assert(textureReturnStruct.size() >= sampler.structReturnIndex);
// We land here if the texture return is a structure.
TTypeList* blockStruct = textureReturnStruct[s... | pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4008e0
testb $0x1, %al
jne 0x45a3a4
jmp 0x45a48a
movq -0x188(%rbp), %rdi
addq $0x7a8, %rdi # i... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::handlePragma(glslang::TSourceLoc const&, glslang::TVector<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>> const&) | void HlslParseContext::handlePragma(const TSourceLoc& loc, const TVector<TString>& tokens)
{
if (pragmaCallback)
pragmaCallback(loc.line, tokens);
if (tokens.size() == 0)
return;
// These pragmas are case insensitive in HLSL, so we'll compare in lower case.
TVector<TString> lowerTokens... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x78(%rbp)
addq $0x3f0, %rdi # imm = 0x3F0
callq 0x4854a0
testb $0x1, %al
jne 0x45acb1
jmp 0x45accc
movq -0x78(%rbp), %rdi
addq $0x3f0, %rdi # imm = 0x3... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::indexStructBufferContent(glslang::TSourceLoc const&, glslang::TIntermTyped*) const | TIntermTyped* HlslParseContext::indexStructBufferContent(const TSourceLoc& loc, TIntermTyped* buffer) const
{
// Bail out if not a struct buffer
if (buffer == nullptr || ! isStructBufferType(buffer->getType()))
return nullptr;
// Runtime sized array is always the last element.
const TTypeList* ... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x45bdf0
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0xf0(%rax)
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x485e20
testb $0x1, %... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::handleBracketDereference(glslang::TSourceLoc const&, glslang::TIntermTyped*, glslang::TIntermTyped*) | TIntermTyped* HlslParseContext::handleBracketDereference(const TSourceLoc& loc, TIntermTyped* base, TIntermTyped* index)
{
index = makeIntegerIndex(index);
if (index == nullptr) {
error(loc, " unknown index type ", "", "");
return nullptr;
}
TIntermTyped* result = handleBracketOperator... | pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
movq -0x28(%rbp), %rsi
callq 0x45bec0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x45c01f
movq -0xd8(%rbp... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::flatten(glslang::TVariable const&, bool, bool) | void HlslParseContext::flatten(const TVariable& variable, bool linkage, bool arrayed)
{
const TType& type = variable.getType();
// If it's a standalone built-in, there is nothing to flatten
if (type.isBuiltIn() && !type.isStruct())
return;
auto entry = flattenMap.insert(std::make_pair(variabl... | pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movb %cl, %al
movb %dl, %cl
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %cl
movb %cl, -0x11(%rbp)
andb $0x1, %al
movb %al, -0x12(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0x60(%rax... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::transformEntryPoint(glslang::TSourceLoc const&, glslang::TFunction&, glslang::TList<glslang::TAttributeArgs> const&) | TIntermNode* HlslParseContext::transformEntryPoint(const TSourceLoc& loc, TFunction& userFunction,
const TAttributes& attributes)
{
// Return true if this is a tessellation patch constant function input to a domain shader.
const auto isDsPcfInput = [this](const... | pushq %rbp
movq %rsp, %rbp
subq $0x8b0, %rsp # imm = 0x8B0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x780(%rbp)
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x780(%rbp), %rdi
movq ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::handleFunctionBody(glslang::TSourceLoc const&, glslang::TFunction&, TIntermNode*, TIntermNode*&) | void HlslParseContext::handleFunctionBody(const TSourceLoc& loc, TFunction& function, TIntermNode* functionBody,
TIntermNode*& node)
{
node = intermediate.growAggregate(node, functionBody);
intermediate.setAggregateOperator(node, EOpFunction, function.getType(), loc);
... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq 0x38(%rax), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rsi
movq -0x20(%rbp), %rdx
callq 0x56f730
movq %rax, %rdx
m... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::handleSamplerTextureCombine(glslang::TSourceLoc const&, glslang::TIntermTyped*, glslang::TIntermTyped*) | TIntermAggregate* HlslParseContext::handleSamplerTextureCombine(const TSourceLoc& loc, TIntermTyped* argTex,
TIntermTyped* argSampler)
{
TIntermAggregate* txcombine = new TIntermAggregate(EOpConstructTextureSampler);
txcombine->getSequence().push_... | pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movl $0x188, %edi # imm = 0x188
callq 0x4859d0
movq %rax, %rdi
movq %rdi, -0x1e0(%rbp)
movl $0x1d7, ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::constructorError(glslang::TSourceLoc const&, TIntermNode*, glslang::TFunction&, glslang::TOperator, glslang::TType&) | bool HlslParseContext::constructorError(const TSourceLoc& loc, TIntermNode* node, TFunction& function,
TOperator op, TType& type)
{
type.shallowCopy(function.getType());
bool constructingMatrix = false;
switch (op) {
case EOpConstructTextureSampler:
error... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rdi
movq (%rdi), %rax
movq 0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::addStructBuffArguments(glslang::TSourceLoc const&, glslang::TIntermAggregate*&) | void HlslParseContext::addStructBuffArguments(const TSourceLoc& loc, TIntermAggregate*& aggregate)
{
// See if there are any SB types with counters.
const bool hasStructBuffArg =
std::any_of(aggregate->getSequence().begin(),
aggregate->getSequence().end(),
[this](... | pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x190(%rax)
movq %rax, %rdi
callq 0x3fd790
movq %rax, -0x28(%rbp)
movq... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::handleSemantic(glslang::TSourceLoc, glslang::TQualifier&, glslang::TBuiltInVariable, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&) | void HlslParseContext::handleSemantic(TSourceLoc loc, TQualifier& qualifier, TBuiltInVariable builtIn,
const TString& upperCase)
{
// Parse and return semantic number. If limit is 0, it will be ignored. Otherwise, if the parsed
// semantic number is >= limit, errorMsg is ... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x50(%rbp)
movq %rcx, -0x40(%rbp)
movq (%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x8(%rax), %rcx
movq %rcx,... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::handlePackOffset(glslang::TSourceLoc const&, glslang::TQualifier&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const*) | void HlslParseContext::handlePackOffset(const TSourceLoc& loc, TQualifier& qualifier, const glslang::TString& location,
const glslang::TString* component)
{
if (location.size() == 0 || location[0] != 'c') {
error(loc, "expected 'c'", "packoffset", "");
return;... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
callq 0x3ec530
cmpq $0x0, %rax
je 0x476458
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %e... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::structArrayCheck(glslang::TSourceLoc const&, glslang::TType const&) | void HlslParseContext::structArrayCheck(const TSourceLoc& /*loc*/, const TType& type)
{
const TTypeList& structure = *type.getStruct();
for (int m = 0; m < (int)structure.size(); ++m) {
const TType& member = *structure[m].type;
if (member.isArray())
arraySizeRequiredCheck(structure[m... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
callq 0x402d30
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x40... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::declareArray(glslang::TSourceLoc const&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&, glslang::TType const&, glslang::TSymbol*&, bool) | void HlslParseContext::declareArray(const TSourceLoc& loc, const TString& identifier, const TType& type,
TSymbol*& symbol, bool track)
{
if (symbol == nullptr) {
bool currentScope;
symbol = symbolTable.find(identifier, nullptr, ¤tScope);
if (symbol ... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x477829
movq -0x40(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::getStructBufferContentType(glslang::TType const&) const | TType* HlslParseContext::getStructBufferContentType(const TType& type) const
{
if (type.getBasicType() != EbtBlock || type.getQualifier().storage != EvqBuffer)
return nullptr;
const int memberCount = (int)type.getStruct()->size();
assert(memberCount > 0);
TType* contentType = (*type.getStruct(... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
cmpl $0x10, %eax
jne 0x477a26
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq 0x8(%rax), %rax
andq $0x7f, %rax
cmpl $0x6, %eax
je 0x477a33
movq $0x0, -0x8(... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::paramFix(glslang::TType&) | void HlslParseContext::paramFix(TType& type)
{
switch (type.getQualifier().storage) {
case EvqConst:
type.getQualifier().storage = EvqConstReadOnly;
break;
case EvqGlobal:
case EvqTemporary:
type.getQualifier().storage = EvqIn;
break;
case EvqBuffer:
{
... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq 0x50(%rax), %rax
callq *%rax
movl 0x8(%rax), %eax
andl $0x7f, %eax
movl %eax, -0x64(%rbp)
subl $0x2, %eax
jb 0x477c8b
jmp 0x477c55
movl -0x6... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::setLayoutQualifier(glslang::TSourceLoc const&, glslang::TQualifier&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>&) | void HlslParseContext::setLayoutQualifier(const TSourceLoc& loc, TQualifier& qualifier, TString& id)
{
std::transform(id.begin(), id.end(), id.begin(), ::tolower);
if (id == TQualifier::getLayoutMatrixString(ElmColumnMajor)) {
qualifier.layoutMatrix = ElmRowMajor;
return;
}
if (id == TQ... | pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
callq 0x4855e0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x485610
movq %rax, -0x3... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::setLayoutQualifier(glslang::TSourceLoc const&, glslang::TQualifier&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>&, glslang::TIntermTyped const*) | void HlslParseContext::setLayoutQualifier(const TSourceLoc& loc, TQualifier& qualifier, TString& id,
const TIntermTyped* node)
{
const char* feature = "layout-id value";
// const char* nonLiteralFeature = "non-literal layout-id value";
integerCheck(node, feature);
... | pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x68(%rbp)
leaq 0x72e23f(%rip), %rax # 0xba6bcd
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rsi
movq -... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::declareStruct(glslang::TSourceLoc const&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>&, glslang::TType&) | void HlslParseContext::declareStruct(const TSourceLoc& loc, TString& structName, TType& type)
{
// If it was named, which means the type can be reused later, add
// it to the symbol table. (Unless it's a block, in which
// case the name is not a type.)
if (type.getBasicType() == EbtBlock || structName.... | pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
cmpl $0x10, %eax
je 0x479714
movq -0x18(%rbp), %rdi
ca... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::inheritGlobalDefaults(glslang::TQualifier&) const | void HlslParseContext::inheritGlobalDefaults(TQualifier& dst) const
{
if (dst.storage == EvqVaryingOut) {
if (! dst.hasStream() && language == EShLangGeometry)
dst.layoutStream = globalOutputDefaults.layoutStream;
if (! dst.hasXfbBuffer())
dst.layoutXfbBuffer = globalOutputDe... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
andq $0x7f, %rax
cmpl $0x4, %eax
jne 0x47a9fb
movq -0x10(%rbp), %rdi
callq 0x4049e0
testb $0x1, %al
jne 0x47a9c0
movq -0x18(%rbp), %rax
cmpl $... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::convertInitializerList(glslang::TSourceLoc const&, glslang::TType const&, glslang::TIntermTyped*, glslang::TIntermTyped*) | TIntermTyped* HlslParseContext::convertInitializerList(const TSourceLoc& loc, const TType& type,
TIntermTyped* initializer, TIntermTyped* scalarInit)
{
// Will operate recursively. Once a subtree is found that is constructor style,
// everything below it i... | pushq %rbp
movq %rsp, %rbp
subq $0x580, %rsp # imm = 0x580
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x460(%rbp)
movq -0x28(%rbp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq %rax, -0x38(%rbp)
cmpq $0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::constructAggregate(TIntermNode*, glslang::TType const&, int, glslang::TSourceLoc const&) | TIntermTyped* HlslParseContext::constructAggregate(TIntermNode* node, const TType& type, int paramCount,
const TSourceLoc& loc)
{
// Handle cases that map more 1:1 between constructor arguments and constructed.
TIntermTyped* converted = intermediate.addConversi... | pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp # imm = 0x1A0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x160(%rbp)
movq 0x38(%rax), %rax
movq %rax, -0x158(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x150(%r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::fixBlockUniformOffsets(glslang::TQualifier const&, glslang::TVector<glslang::TTypeLoc>&) | void HlslParseContext::fixBlockUniformOffsets(const TQualifier& qualifier, TTypeList& typeList)
{
if (! qualifier.isUniformOrBuffer())
return;
if (qualifier.layoutPacking != ElpStd140 && qualifier.layoutPacking != ElpStd430 && qualifier.layoutPacking != ElpScalar)
return;
int offset = 0;
... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0x435fe0
testb $0x1, %al
jne 0x47d171
jmp 0x47d371
movq -0x10(%rbp), %rax
movb 0x10(%rax), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::addQualifierToExisting(glslang::TSourceLoc const&, glslang::TQualifier, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&) | void HlslParseContext::addQualifierToExisting(const TSourceLoc& loc, TQualifier qualifier, const TString& identifier)
{
TSymbol* symbol = symbolTable.find(identifier);
if (symbol == nullptr) {
error(loc, "identifier not previously declared", identifier.c_str(), "");
return;
}
if (symbol-... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0xe8(%rax), %rdi
movq -0x18(%rbp), %rsi
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rdx
movq %r8, %rcx
callq 0x486... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::wrapupSwitchSubsequence(glslang::TIntermAggregate*, TIntermNode*) | void HlslParseContext::wrapupSwitchSubsequence(TIntermAggregate* statements, TIntermNode* branchNode)
{
TIntermSequence* switchSequence = switchSequenceStack.back();
if (statements) {
statements->setOperator(EOpSequence);
switchSequence->push_back(statements);
}
if (branchNode) {
... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
addq $0x138, %rdi # imm = 0x138
callq 0x489420
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x47e2fd
movq -0x10(%rbp), %rdi
movq (... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::addSwitch(glslang::TSourceLoc const&, glslang::TIntermTyped*, glslang::TIntermAggregate*, glslang::TList<glslang::TAttributeArgs> const&) | TIntermNode* HlslParseContext::addSwitch(const TSourceLoc& loc, TIntermTyped* expression,
TIntermAggregate* lastStatements, const TAttributes& attributes)
{
wrapupSwitchSubsequence(lastStatements, nullptr);
if (expression == nullptr ||
(expression->getBasicType(... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movq -0x28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x47e2a0
cmpq $0x0, -0x20(%rbp)
je 0x47e568
movq -0x20(... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::pushNamespace(std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&) | void HlslParseContext::pushNamespace(const TString& typeName)
{
// make new type prefix
TString newPrefix;
if (currentTypePrefix.size() > 0)
newPrefix = currentTypePrefix.back();
newPrefix.append(typeName);
newPrefix.append(scopeMangler);
currentTypePrefix.push_back(newPrefix);
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3f4d90
movq -0x40(%rbp), %rdi
addq $0x8b8, %rdi # imm = 0x8B8
callq 0x3f49b0
cmpq $0x0, %rax
jbe 0x47e833
movq -0x40(%rbp), %rdi
addq $0x8b8, %r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::isOutputBuiltIn(glslang::TQualifier const&) const | bool HlslParseContext::isOutputBuiltIn(const TQualifier& qualifier) const
{
switch (qualifier.builtIn) {
case EbvPosition:
case EbvPointSize:
case EbvClipVertex:
case EbvClipDistance:
case EbvCullDistance:
return language != EShLangFragment && language != EShLangCompute;
case EbvFrag... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
shrl $0x7, %eax
andl $0x1ff, %eax # imm = 0x1FF
addl $-0x1e, %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x74, %eax
ja 0x47ec2d
movq -0x20(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::HlslParseContext::setTextureReturnType(glslang::TSampler&, glslang::TType const&, glslang::TSourceLoc const&) | bool HlslParseContext::setTextureReturnType(TSampler& sampler, const TType& retType, const TSourceLoc& loc)
{
// Seed the output with an invalid index. We will set it to a valid one if we can.
sampler.structReturnIndex = TSampler::noReturnStruct;
// Arrays aren't supported.
if (retType.isArray()) {
... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %ecx
andl $0xe1ffffff, %ecx # imm = 0xE1FFFFFF
orl $0x1e000000, %ecx # imm = 0x1E000000
mo... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseHelper.cpp |
glslang::TQualifier::isAuxiliary() const | bool isAuxiliary() const
{
return centroid || patch || sample || pervertexNV || pervertexEXT;
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x8(%rax), %rcx
shrq $0x1d, %rcx
andq $0x1, %rcx
movb $0x1, %al
testq $0x1, %rcx
movb %al, -0x9(%rbp)
jne 0x488ed7
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x2c, %rcx
andq $0x1, %rcx
movb $0x1, %al
testq $0x1, %r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/Types.h |
glslang::TSymbolTableLevel::findFunctionNameList(std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&, glslang::TVector<glslang::TFunction const*>&) | void findFunctionNameList(const TString& name, TVector<const TFunction*>& list)
{
size_t parenAt = name.find_first_of('(');
TString base(name, 0, parenAt + 1);
tLevel::const_iterator begin = level.lower_bound(base);
base[parenAt] = ')'; // assume ')' is lexically after '('
... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movl $0x28, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x402b80
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rcx
addq $0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/SymbolTable.h |
glslang::HlslGrammar::acceptAttributes(glslang::TList<glslang::TAttributeArgs>&) | void HlslGrammar::acceptAttributes(TAttributes& attributes)
{
// For now, accept the [ XXX(X) ] syntax, but drop all but
// numthreads, which is used to set the CS local size.
// TODO: subset to correct set? Pass on?
do {
HlslToken attributeToken;
// LEFT_BRACKET?
if (! acceptT... | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x48e3a0
movq -0xb0(%rbp), %rdi
movl $0x165, %esi # imm = 0x165
callq 0x5e2410
testb $0x1, %al
jne 0x4a3c11
jmp 0x4a3f39
movq -0xb0(%rbp), %rdi
mo... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptExpression(glslang::TIntermTyped*&) | bool HlslGrammar::acceptExpression(TIntermTyped*& node)
{
node = nullptr;
// assignment_expression
if (! acceptAssignmentExpression(node))
return false;
if (! peekTokenClass(EHTokComma))
return true;
do {
// ... COMMA
TSourceLoc loc = token.loc;
advanceToke... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rsi
callq 0x4a4a90
testb $0x1, %al
jne 0x4a4ee9
movb $0x0, -0x1(%rbp)
jmp 0x4a4fa7
movq -0x40(%rbp), %rdi
movl $0x16a, %esi ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptStreamOutTemplateType(glslang::TType&, glslang::TLayoutGeometry&) | bool HlslGrammar::acceptStreamOutTemplateType(TType& type, TLayoutGeometry& geometry)
{
geometry = ElgNone;
if (! acceptOutputPrimitiveGeometry(geometry))
return false;
if (! acceptTokenClass(EHTokLeftAngle))
return false;
if (! acceptType(type)) {
expected("stream output type... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rsi
callq 0x4a9630
testb $0x1, %al
jne 0x4a995c
movb $0x0, -0x1(%rbp)
jmp 0x4a9a04
movq -0x28(%rbp), ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptAnnotations(glslang::TQualifier&) | bool HlslGrammar::acceptAnnotations(TQualifier&)
{
if (! acceptTokenClass(EHTokLeftAngle))
return false;
// note that we are nesting a name space
parseContext.nestAnnotations();
// declaration SEMI_COLON ... declaration SEMICOLON RIGHT_ANGLE
do {
// eat any extra SEMI_COLON; don't ... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movl $0x175, %esi # imm = 0x175
callq 0x5e2410
testb $0x1, %al
jne 0x4a9a3f
movb $0x0, -0x1(%rbp)
jmp 0x4a9aca
movq -0x28(%rbp), %rax
movq 0x148(%rax), %rdi
callq 0x4ae810
j... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptInitializer(glslang::TIntermTyped*&) | bool HlslGrammar::acceptInitializer(TIntermTyped*& node)
{
// LEFT_BRACE
if (! acceptTokenClass(EHTokLeftBrace))
return false;
// RIGHT_BRACE
TSourceLoc loc = token.loc;
if (acceptTokenClass(EHTokRightBrace)) {
// a zero-length initializer list
node = intermediate.makeAggreg... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movl $0x167, %esi # imm = 0x167
callq 0x5e2410
testb $0x1, %al
jne 0x4ac28f
movb $0x0, -0x1(%rbp)
jmp 0x4ac43d
movq -0x48(%rbp), %rdi
movq 0x8(%rdi), %rax
movq %rax, -0x30(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptUnaryExpression(glslang::TIntermTyped*&) | bool HlslGrammar::acceptUnaryExpression(TIntermTyped*& node)
{
// (type) unary_expression
// Have to look two steps ahead, because this could be, e.g., a
// postfix_expression instead, since that also starts with at "(".
if (acceptTokenClass(EHTokLeftParen)) {
TType castType;
if (acceptT... | pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp # imm = 0x120
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x110(%rbp)
movl $0x163, %esi # imm = 0x163
callq 0x5e2410
testb $0x1, %al
jne 0x4ac901
jmp 0x4acb6f
leaq -0xb0(%rbp), %rdi
xorl %r9d, %r9d
movl $0x1, %ecx
mo... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptConstructor(glslang::TIntermTyped*&) | bool HlslGrammar::acceptConstructor(TIntermTyped*& node)
{
// type
TType type;
if (acceptType(type)) {
TFunction* constructorFunction = parseContext.makeConstructorCall(token.loc, type);
if (constructorFunction == nullptr)
return false;
// arguments
TIntermTyped*... | pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xb0(%rbp), %rdi
xorl %r9d, %r9d
movl $0x1, %ecx
movl %r9d, %esi
movl %r9d, %edx
movl %r9d, %r8d
movl $0x0, (%rsp)
callq 0x3f53c0
movq -0xd0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
ca... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::HlslGrammar::acceptSelectionStatement(TIntermNode*&, glslang::TList<glslang::TAttributeArgs> const&) | bool HlslGrammar::acceptSelectionStatement(TIntermNode*& statement, const TAttributes& attributes)
{
TSourceLoc loc = token.loc;
// IF
if (! acceptTokenClass(EHTokIf))
return false;
// so that something declared in the condition is scoped to the lifetimes
// of the then-else statements
... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
movq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
movq 0x18(%rdi), %rax
movq %rax, -0x28(%rbp)
movl $0x146, %esi ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslGrammar.cpp |
glslang::TSampler::set(glslang::TBasicType, glslang::TSamplerDim, bool, bool, bool) | void set(TBasicType t, TSamplerDim d, bool a = false, bool s = false, bool m = false)
{
clear();
type = t;
dim = d;
arrayed = a;
shadow = s;
ms = m;
combined = true;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %r8d, -0x30(%rbp)
movl %ecx, %eax
movl -0x30(%rbp), %ecx
movl %eax, -0x2c(%rbp)
movl %edx, %eax
movl -0x2c(%rbp), %edx
movl %eax, -0x28(%rbp)
movl %esi, %eax
movl -0x28(%rbp), %esi
movl %eax, -0x24(%rbp)
movq %rdi, %r8
movl -0x24(%rbp), %edi
movb %r9b, %al
movq %r8, -0x8... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/Types.h |
glslang::TBuiltInParseablesHlsl::createMatTimesMat() | void TBuiltInParseablesHlsl::createMatTimesMat()
{
TString& s = commonBuiltins;
for (int xRows = 1; xRows <=4; xRows++) {
for (int xCols = 1; xCols <=4; xCols++) {
const int yRows = xCols;
for (int yCols = 1; yCols <=4; yCols++) {
const int retRows = xRows;
... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jg 0x4b14bf
movl $0x1, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jg 0x4b14af
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl $0x1, -0x20(%rbp)
cmpl $0x... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseables.cpp |
(anonymous namespace)::CoordinateArgPos(std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> const&, bool) | int CoordinateArgPos(const glslang::TString& name, bool isTexture)
{
if (!isTexture || (name == "GetDimensions"))
return -1; // has none
else if (name == "Load")
return 1;
else
return 2; // other texture methods are 2
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
je 0x4b2650
movq -0x10(%rbp), %rdi
leaq 0x6b6596(%rip), %rsi # 0xb68bdb
callq 0x40fc30
testb $0x1, %al
jne 0x4b2650
jmp 0x4b2659
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFF... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/HLSL/hlslParseables.cpp |
(anonymous namespace)::TranslateExecutionModel(EShLanguage, bool) | spv::ExecutionModel TranslateExecutionModel(EShLanguage stage, bool isMeshShaderEXT = false)
{
switch (stage) {
case EShLangVertex: return spv::ExecutionModelVertex;
case EShLangFragment: return spv::ExecutionModelFragment;
case EShLangCompute: return spv::ExecutionModelGLComp... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movl %edi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movl -0x8(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0xd, %rax
ja 0x4b6f16
movq -0x18(%rbp), %rax
leaq 0x6b20fd(%rip), %rcx # 0xb68f5c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/GlslangToSpv.cpp |
(anonymous namespace)::TGlslangToSpvTraverser::visitConstantUnion(glslang::TIntermConstantUnion*) | void TGlslangToSpvTraverser::visitConstantUnion(glslang::TIntermConstantUnion* node)
{
if (node->getQualifier().isSpirvLiteral())
return; // Translated to a literal value, skip further processing
int nextConst = 0;
spv::Id constant = createSpvConstantFromConstUnionArray(node->getType(), node->getCo... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0x108(%rax)
movq %rax, %rdi
callq 0x405020
testb $0x1, %al
jne 0x4b9143
jmp 0x4b9145
jmp 0x4b919d
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp),... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/GlslangToSpv.cpp |
(anonymous namespace)::TGlslangToSpvTraverser::visitLoop(glslang::TVisit, glslang::TIntermLoop*) | bool TGlslangToSpvTraverser::visitLoop(glslang::TVisit /* visit */, glslang::TIntermLoop* node)
{
auto blocks = builder.makeNewLoop();
builder.createBranch(true, &blocks.head);
// Loop control:
std::vector<unsigned int> operands;
const spv::LoopControlMask control = TranslateLoopControl(*node, oper... | pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x78(%rbp)
addq $0x68, %rdi
callq 0x5108e0
movq -0x78(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq 0x10(%rax), %rcx
mo... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/GlslangToSpv.cpp |
(anonymous namespace)::TGlslangToSpvTraverser::addMeshNVDecoration(unsigned int, int, glslang::TQualifier const&) | void TGlslangToSpvTraverser::addMeshNVDecoration(spv::Id id, int member, const glslang::TQualifier& qualifier)
{
bool isMeshShaderExt = (glslangIntermediate->getRequestedExtensions().find(glslang::E_GL_EXT_mesh_shader) !=
glslangIntermediate->getRequestedExtensions().end());
if (mem... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq 0x640(%rax), %rdi
callq 0x4db180
movq %rax, -0x70(%rbp)
leaq -0x49(%rbp), %rdi
callq 0xd99e0
leaq -0x48(%rbp), %rdi
leaq 0x696c8a(%rip),... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/GlslangToSpv.cpp |
spv::Instruction::addStringOperand(char const*) | void addStringOperand(const char* str)
{
unsigned int word = 0;
unsigned int shiftAmount = 0;
char c;
do {
c = *(str++);
word |= ((unsigned int)c) << shiftAmount;
shiftAmount += 8;
if (shiftAmount == 32) {
addImmediateO... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %al
movb %al, -0x19(%rbp)
movsbl -0x19(%rbp), %ea... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/spvIR.h |
glslang::TSmallArrayVector::pop_front() | void pop_front()
{
assert(sizes != nullptr && sizes->size() > 0);
if (sizes->size() == 1)
dealloc();
else
sizes->erase(sizes->begin());
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x30(%rbp)
xorl %eax, %eax
cmpq $0x0, 0x8(%rcx)
movb %al, -0x21(%rbp)
je 0x4ec277
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3f6d20
cmpq $0x0, %rax
seta %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/arrays.h |
glslang::isTypeUnsignedInt(glslang::TBasicType) | __inline bool isTypeUnsignedInt(TBasicType type)
{
switch (type) {
case EbtUint8:
case EbtUint16:
case EbtUint:
case EbtUint64:
return true;
default:
return false;
}
} | pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0xc(%rbp)
subl $0x5, %eax
je 0x4f0492
jmp 0x4f0474
movl -0xc(%rbp), %eax
subl $0x7, %eax
je 0x4f0492
jmp 0x4f047e
movl -0xc(%rbp), %eax
subl $0x9, %eax
je 0x4f0492
jmp 0x4f0488
movl -0xc(%rbp), %eax
subl $0xb, %eax
jne 0x4f0498
jmp 0x4f0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/glslang/MachineIndependent/../Include/../Include/BaseTypes.h |
spv::Builder::clearAccessChain() | void Builder::clearAccessChain()
{
accessChain.base = NoResult;
accessChain.indexChain.clear();
accessChain.instr = NoResult;
accessChain.swizzle.clear();
accessChain.component = NoResult;
accessChain.preSwizzleBaseType = NoType;
accessChain.isRValue = false;
accessChain.coherentFlags.cl... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
movl $0x0, 0x1e8(%rdi)
addq $0x1e8, %rdi # imm = 0x1E8
addq $0x8, %rdi
callq 0x133000
movq -0x10(%rbp), %rdi
movl $0x0, 0x208(%rdi)
addq $0x1e8, %rdi # imm = 0x1E8
addq $0x28, %rdi
callq ... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeCompositeDebugType(std::vector<unsigned int, std::allocator<unsigned int>> const&, char const*, spv::NonSemanticShaderDebugInfo100DebugCompositeType, bool) | Id Builder::makeCompositeDebugType(std::vector<Id> const& memberTypes, char const*const name,
NonSemanticShaderDebugInfo100DebugCompositeType const tag, bool const isOpaqueType)
{
// Create the debug member types.
std::vector<Id> memberDebugTypes;
for(auto const memberType : memberTypes) {
asser... | pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp # imm = 0x1F0
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
andb $0x1, %al
movb %al, -0x1d(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xe8dd0
movq -0x10(%rbp), %rax
m... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeIntegerType(int, bool) | Id Builder::makeIntegerType(int width, bool hasSign)
{
// try to find it
Instruction* type;
for (int t = 0; t < (int)groupedTypes[OpTypeInt].size(); ++t) {
type = groupedTypes[OpTypeInt][t];
if (type->getImmediateOperand(0) == (unsigned)width &&
type->getImmediateOperand(1) == (h... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x48(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, -0x4c(%rbp)
addq $0x3a0, %rdi # imm = 0x3A... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeVectorType(unsigned int, int) | Id Builder::makeVectorType(Id component, int size)
{
// try to find it
Instruction* type;
for (int t = 0; t < (int)groupedTypes[OpTypeVector].size(); ++t) {
type = groupedTypes[OpTypeVector][t];
if (type->getIdOperand(0) == component &&
type->getImmediateOperand(1) == (unsigned)s... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x48(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, -0x4c(%rbp)
addq $0x3a0, %rdi # imm = 0x3A0
movl $0x17, -0x28(%rbp)
le... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeFunctionType(unsigned int, std::vector<unsigned int, std::allocator<unsigned int>> const&) | Id Builder::makeFunctionType(Id returnType, const std::vector<Id>& paramTypes)
{
// try to find it
Instruction* type;
for (int t = 0; t < (int)groupedTypes[OpTypeFunction].size(); ++t) {
type = groupedTypes[OpTypeFunction][t];
if (type->getIdOperand(0) != returnType || (int)paramTypes.size()... | pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x88(%rbp), %rdi
movl -0x2c(%rbp), %eax
movl %eax, -0x8c(%rbp)
addq $0x3a0, %rdi # imm = 0x3A0
movl $0x21, -0x30(%rbp)
le... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeSequentialDebugType(unsigned int, unsigned int, spv::NonSemanticShaderDebugInfo100Instructions) | Id Builder::makeSequentialDebugType(Id const baseType, Id const componentCount, NonSemanticShaderDebugInfo100Instructions const sequenceType)
{
assert(sequenceType == NonSemanticShaderDebugInfo100DebugTypeArray ||
sequenceType == NonSemanticShaderDebugInfo100DebugTypeVector);
// try to find it
Inst... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movb $0x1, %al
cmpl $0x5, -0x1c(%rbp)
movb %al, -0x41(%rbp)
je 0x5057d5
cmpl $0x6, -0x1c(%rbp)
sete %al
movb %al, -0x41(%rbp)
movb -0x41(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeMemberDebugType(unsigned int, spv::Builder::DebugTypeLoc const&) | Id Builder::makeMemberDebugType(Id const memberType, DebugTypeLoc const& debugTypeLoc)
{
assert(debugId[memberType] != 0);
Instruction* type = new Instruction(getUniqueId(), makeVoidType(), OpExtInst);
type->reserveOperands(10);
type->addIdOperand(nonSemanticShaderDebugInfo);
type->addImmediateOper... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
addq $0x530, %rdi # imm = 0x530
leaq -0xc(%rbp), %rsi
callq 0x4356a0
cmpl $0x0, (%rax)
je 0x505bf5
jmp 0x505c14
leaq 0x66a9af(%rip), %rdi # 0xb705ab
l... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeDebugCompilationUnit() | Id Builder::makeDebugCompilationUnit() {
if (nonSemanticShaderCompilationUnitId != 0)
return nonSemanticShaderCompilationUnitId;
spv::Id resultId = getUniqueId();
Instruction* sourceInst = new Instruction(resultId, makeVoidType(), OpExtInst);
sourceInst->reserveOperands(6);
sourceInst->addId... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, 0x4c(%rax)
je 0x506069
movq -0x30(%rbp), %rax
movl 0x4c(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x506201
movq -0x30(%rbp), %rdi
callq 0x4dd580
movl %eax, -0x14(%rbp)
movl $0x60, %edi
callq 0xdb140
m... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createDebugGlobalVariable(unsigned int, char const*, unsigned int) | Id Builder::createDebugGlobalVariable(Id const type, char const*const name, Id const variable)
{
assert(type != 0);
Instruction* inst = new Instruction(getUniqueId(), makeVoidType(), OpExtInst);
inst->reserveOperands(11);
inst->addIdOperand(nonSemanticShaderDebugInfo);
inst->addImmediateOperand(Non... | pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x50623c
jmp 0x50625b
leaq 0x66a530(%rip), %rdi # 0xb70773
leaq 0x669f50(%rip), %rsi # 0xb7019a
movl $0x4b0, %... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeDebugValue(unsigned int, unsigned int) | Id Builder::makeDebugValue(Id const debugLocalVariable, Id const value)
{
Instruction* inst = new Instruction(getUniqueId(), makeVoidType(), OpExtInst);
inst->reserveOperands(5);
inst->addIdOperand(nonSemanticShaderDebugInfo);
inst->addImmediateOperand(NonSemanticShaderDebugInfo100DebugValue);
inst-... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x60, %edi
callq 0xdb140
movq -0x28(%rbp), %rdi
movq %rax, -0x38(%rbp)
callq 0x4dd580
movq -0x28(%rbp), %rdi
movl %eax, -0x3c(%rbp)
callq 0x5007c0
movl -0x3c(... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeAccelerationStructureType() | Id Builder::makeAccelerationStructureType()
{
Instruction *type;
if (groupedTypes[OpTypeAccelerationStructureKHR].size() == 0) {
type = new Instruction(getUniqueId(), NoType, OpTypeAccelerationStructureKHR);
groupedTypes[OpTypeAccelerationStructureKHR].push_back(type);
constantsTypesGlob... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
addq $0x3a0, %rdi # imm = 0x3A0
movl $0x14dd, -0x14(%rbp) # imm = 0x14DD
leaq -0x14(%rbp), %rsi
callq 0x4f9870
movq %rax, %rdi
callq 0x4def70
cmpq $0x0, %rax
jne 0x5070c6
movl $0x60, %edi
callq 0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeRayQueryType() | Id Builder::makeRayQueryType()
{
Instruction *type;
if (groupedTypes[OpTypeRayQueryKHR].size() == 0) {
type = new Instruction(getUniqueId(), NoType, OpTypeRayQueryKHR);
groupedTypes[OpTypeRayQueryKHR].push_back(type);
constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
addq $0x3a0, %rdi # imm = 0x3A0
movl $0x1178, -0x14(%rbp) # imm = 0x1178
leaq -0x14(%rbp), %rsi
callq 0x4f9870
movq %rax, %rdi
callq 0x4def70
cmpq $0x0, %rax
jne 0x507276
movl $0x60, %edi
callq 0... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::getMostBasicTypeClass(unsigned int) const | Op Builder::getMostBasicTypeClass(Id typeId) const
{
Instruction* instr = module.getInstruction(typeId);
Op typeClass = instr->getOpCode();
switch (typeClass)
{
case OpTypeVector:
case OpTypeMatrix:
case OpTypeArray:
case OpTypeRuntimeArray:
return getMostBasicTypeClass(instr->g... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x30(%rbp)
addq $0x190, %rdi # imm = 0x190
movl -0x14(%rbp), %esi
callq 0x4eabd0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x4eac00
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::findScalarConstant(spv::Op, spv::Op, unsigned int, unsigned int, unsigned int) | Id Builder::findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned v1, unsigned v2)
{
Instruction* constant;
for (int i = 0; i < (int)groupedConstants[typeClass].size(); ++i) {
constant = groupedConstants[typeClass][i];
if (constant->getOpCode() == opcode &&
constant->getTyp... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x48(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, -0x4c(%rbp)
... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::makeFloat16Constant(float, bool) | Id Builder::makeFloat16Constant(float f16, bool specConstant)
{
Op opcode = specConstant ? OpSpecConstant : OpConstant;
Id typeId = makeFloatType(16);
spvutils::HexFloat<spvutils::FloatProxy<float>> fVal(f16);
spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>> f16Val(0);
fVal.castTo(f16Val... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movb -0x15(%rbp), %dl
movl $0x2b, %eax
movl $0x32, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x1c(%rbp)
movl $0x10, %esi... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::addLinkageDecoration(unsigned int, char const*, spv::LinkageType) | void Builder::addLinkageDecoration(Id id, const char* name, spv::LinkageType linkType) {
Instruction* dec = new Instruction(OpDecorate);
dec->reserveOperands(4);
dec->addIdOperand(id);
dec->addImmediateOperand(spv::DecorationLinkageAttributes);
dec->addStringOperand(name);
dec->addImmediateOpera... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movl $0x60, %edi
callq 0xdb140
movq %rax, %rdi
movq %rdi, -0x58(%rbp)
movl $0x47, %esi
callq 0x4f5a10
movq -0x58(%rbp), %rax
movq %rax, -0x28... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::addDecorationId(unsigned int, spv::Decoration, std::vector<unsigned int, std::allocator<unsigned int>> const&) | void Builder::addDecorationId(Id id, Decoration decoration, const std::vector<Id>& operandIds)
{
if(decoration == spv::DecorationMax)
return;
Instruction* dec = new Instruction(OpDecorateId);
dec->reserveOperands(operandIds.size() + 2);
dec->addIdOperand(id);
dec->addImmediateOperand(decora... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpl $0x7fffffff, -0x10(%rbp) # imm = 0x7FFFFFFF
jne 0x50995f
jmp 0x509a4d
movl $0x60, %edi
callq 0xdb140
movq %rax, %rdi
movq %rdi, -0x70(%r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::addMemberDecoration(unsigned int, unsigned int, spv::Decoration, char const*) | void Builder::addMemberDecoration(Id id, unsigned int member, Decoration decoration, const char *s)
{
if (decoration == spv::DecorationMax)
return;
Instruction* dec = new Instruction(OpMemberDecorateStringGOOGLE);
dec->reserveOperands(4);
dec->addIdOperand(id);
dec->addImmediateOperand(memb... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpl $0x7fffffff, -0x14(%rbp) # imm = 0x7FFFFFFF
jne 0x509b6f
jmp 0x509c09
movl $0x60, %edi
callq 0xdb140
movq %rax, %r... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::enterFunction(spv::Function const*) | void Builder::enterFunction(Function const* function)
{
// Save and disable debugInfo for HLSL entry point function. It is a wrapper
// function with no user code in it.
restoreNonSemanticShaderDebugInfo = emitNonSemanticShaderDebugInfo;
if (sourceLang == spv::SourceLanguageHLSL && function == entryPoin... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movb 0xea(%rax), %cl
andb $0x1, %cl
movb %cl, 0xeb(%rax)
cmpl $0x5, 0x44(%rax)
jne 0x50aea9
movq -0x38(%rbp), %rcx
movq -0x10(%rbp), %rax
cmpq 0x1d8(%rcx), %rax
jne 0x50aea9
movq -0x38(%... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createNoResultOp(spv::Op, std::vector<unsigned int, std::allocator<unsigned int>> const&) | void Builder::createNoResultOp(Op opCode, const std::vector<Id>& operands)
{
Instruction* op = new Instruction(opCode);
op->reserveOperands(operands.size());
for (auto id : operands) {
op->addIdOperand(id);
}
addInstruction(std::unique_ptr<Instruction>(op));
} | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0x60, %edi
callq 0xdb140
movq %rax, %rdi
movq %rdi, -0x58(%rbp)
movl -0xc(%rbp), %esi
callq 0x4f5a10
movq -0x58(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createVariable(spv::Decoration, spv::StorageClass, unsigned int, char const*, unsigned int, bool) | Id Builder::createVariable(Decoration precision, StorageClass storageClass, Id type, const char* name, Id initializer,
bool const compilerGenerated)
{
Id pointerType = makePointer(storageClass, type);
Instruction* inst = new Instruction(getUniqueId(), pointerType, OpVariable);
inst->addImmediateOperand(... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movb 0x10(%rbp), %al
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
andb $0x1, %al
movb %al, -0x25(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movl -0x10(%rbp), %esi
movl -0x14(%rbp... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createCompositeInsert(unsigned int, unsigned int, unsigned int, unsigned int) | Id Builder::createCompositeInsert(Id object, Id composite, Id typeId, unsigned index)
{
Instruction* insert = new Instruction(getUniqueId(), typeId, OpCompositeInsert);
insert->reserveOperands(3);
insert->addIdOperand(object);
insert->addIdOperand(composite);
insert->addImmediateOperand(index);
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x60, %edi
callq 0xdb140
movq -0x30(%rbp), %rdi
movq %rax, -0x38(%rbp)
callq 0x4dd580
movq -0x38(%rbp), %rdi
mov... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createRvalueSwizzle(spv::Decoration, unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int>> const&) | Id Builder::createRvalueSwizzle(Decoration precision, Id typeId, Id source, const std::vector<unsigned>& channels)
{
if (channels.size() == 1)
return setPrecision(createCompositeExtract(source, typeId, channels.front()), precision);
if (generatingOpCodeForSpecConst) {
std::vector<Id> operands(2... | pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rdi
callq 0xe8df0
cmpq $0x1, %rax
jne 0x50d0bf
movl -0x1c(%rbp), %eax
movl %eax, -0x70(%rbp)
movl... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createCompositeCompare(spv::Decoration, unsigned int, unsigned int, bool) | Id Builder::createCompositeCompare(Decoration precision, Id value1, Id value2, bool equal)
{
Id boolType = makeBoolType();
Id valueType = getTypeId(value1);
Id resultId = NoResult;
int numConstituents = getNumTypeConstituents(valueType);
// Scalars and Vectors
if (isScalarType(valueType) || ... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movb %r8b, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
andb $0x1, %al
movb %al, -0x1d(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x500910
movq -0x78(%rbp), %rdi
movl %eax, -0x24(%rbp)
movl -0x18(%rbp), %esi
ca... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::createCompositeConstruct(unsigned int, std::vector<unsigned int, std::allocator<unsigned int>> const&) | Id Builder::createCompositeConstruct(Id typeId, const std::vector<Id>& constituents)
{
assert(isAggregateType(typeId) || (getNumTypeConstituents(typeId) > 1 &&
getNumTypeConstituents(typeId) == constituents.size()) ||
(isCooperativeVectorType(typeId) && constituents.size() == 1));
if (gen... | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x98(%rbp)
movl -0x14(%rbp), %esi
callq 0x4f0940
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x89(%rbp)
jne 0x50e97a
movq -0x98(%rbp), %rdi
movl -0x14(%rbp), %e... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
spv::Builder::nextSwitchSegment(std::vector<spv::Block*, std::allocator<spv::Block*>>&, int) | void Builder::nextSwitchSegment(std::vector<Block*>& segmentBlock, int nextSegment)
{
int lastSegment = nextSegment - 1;
if (lastSegment >= 0) {
// Close out previous segment by jumping, if necessary, to next segment
if (! buildPoint->isTerminated())
createBranch(true, segmentBlock[n... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jl 0x51078e
movq -0x28(%rbp), %rax
movq 0x1c8(%rax), %rdi
callq 0x5142e0
testb... | /DiligentGraphics[P]DiligentCore/ThirdParty/glslang/SPIRV/SpvBuilder.cpp |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.