name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
bool clang::interp::IncDecHelper<clang::interp::Integral<16u, false>, (clang::interp::IncDecOp)1, (clang::interp::PushVal)1>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&) | bool IncDecHelper(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
assert(!Ptr.isDummy());
if constexpr (std::is_same_v<T, Boolean>) {
if (!S.getLangOpts().CPlusPlus14)
return Invalid(S, OpPC);
}
const T &Value = Ptr.deref<T>();
T Result;
if constexpr (DoPush == PushVal::Yes)
S.Stk.push<... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x11bad24
movq %rax, %r15
movq 0xb0(%r14), %rdi
movl $0x8, %esi
callq 0x1250efe
movzwl (%r15), %ebp
movw %bp, (%rax)
decl %ebp
movq %rbx, %rdi
callq 0x11bad24
movw %bp, (%rax)
movb $0x1, %al
addq $0x8, %rsp
popq... | /AST/Interp/Interp.h |
clang::interp::Pointer::isWeak() const | bool isIntegralPointer() const { return StorageKind == Storage::Int; } | cmpl $0x1, 0x28(%rdi)
je 0x120b0a9
movq 0x18(%rdi), %rax
movq 0x20(%rax), %rax
movq (%rax), %rdi
movl %edi, %eax
andl $0x2, %eax
shrl %eax
andq $-0x4, %rdi
sete %cl
orb %al, %cl
jne 0x120b0a9
movl 0x1c(%rdi), %eax
andl $0x7f, %eax
addl $-0x17, %eax
cmpl $0x1a, %eax
jbe 0x1110918
xorl %eax, %eax
retq
| /AST/Interp/Pointer.h |
bool clang::interp::IncDecHelper<clang::interp::IntegralAP<true>, (clang::interp::IncDecOp)0, (clang::interp::PushVal)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&) | bool IncDecHelper(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
assert(!Ptr.isDummy());
if constexpr (std::is_same_v<T, Boolean>) {
if (!S.getLangOpts().CPlusPlus14)
return Invalid(S, OpPC);
}
const T &Value = Ptr.deref<T>();
T Result;
if constexpr (DoPush == PushVal::Yes)
S.Stk.push<... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x11bb07c
movq %rax, %r15
movl $0x3, 0x18(%rsp)
movq $0x7, 0x10(%rsp)
movl 0x8(%rax), %eax
movl %eax, 0x38(%rsp)
cmpl $0x40, %eax
ja 0x120e227
movq (%r15), %rax
movq %... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<16u, true>, clang::interp::Integral<16u, true>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<16u, true>&, clang::interp::Integral<16u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
movzwl (%r14), %eax
jne 0x1215e63
testw %ax, %ax
jns 0x1215e6a
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x20(%rsp),... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<16u, true>, clang::interp::Integral<64u, false>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<16u, true>&, clang::interp::Integral<64u, false>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
je 0x12172a9
andq $0xf, (%r15)
cmpw $0x0, (%r14)
jns 0x1217336
movq %rbx, %rdi
callq 0x125857c
testb $0x40, 0x1(%rax)
jne 0x1217336
m... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::Integral<16u, false>, clang::interp::Integral<16u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<16u, false> const&, clang::interp::Integral<16u, false> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpl $0x2, %r8d
jb 0x1218fd9
movl %r8d, %ebp
movq %rcx, %r14
cmpw %bp, (%rcx)
jb 0x1218fd9
movq %rdi, %rbx
movq 0xc0(%rdi), %rdi
callq 0x1250a24
movzwl (%r14), %ecx
movq %rsp, %r15
movl $0x10, 0x8(%r15)
movq %rcx, (%r15)
movb $0x1, 0xc(%r15)
movq 0x8(%rax), %... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<16u, false>, clang::interp::Integral<32u, true>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<16u, false>&, clang::interp::Integral<32u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
movl (%r14), %eax
jne 0x12190a7
testl %eax, %eax
jns 0x12190ad
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x20(%rsp),... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::Integral<16u, false>, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<16u, false> const&, clang::interp::Integral<32u, true> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %r8d, %ebp
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl (%rcx), %eax
testl %eax, %eax
jns 0x12192b8
movq 0xc0(%rbx), %rdi
movq %r15, %rsi
callq 0x12509c2
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
movl $0x8c0, %edx ... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::Integral<16u, false>, clang::interp::Integral<64u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<16u, false> const&, clang::interp::Integral<64u, false> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x2, %r8d
jb 0x12198a1
movq %rcx, %r15
movl %r8d, %r14d
cmpq %r14, (%rcx)
jb 0x12198a1
movq %rdi, %rbx
movq 0xc0(%rdi), %rdi
callq 0x1250a24
movq (%r15), %rcx
movq %rsp, %r12
movl $0x40, 0x8(%r12)
movq %rcx, (%r12)
movb $0x1, 0xc(%r12)
movq 0x8(%rax), %... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<32u, true>, clang::interp::Integral<64u, false>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<32u, true>&, clang::interp::Integral<64u, false>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
je 0x121c247
andq $0x1f, (%r15)
cmpl $0x0, (%r14)
jns 0x121c2d2
movq %rbx, %rdi
callq 0x125857c
testb $0x40, 0x1(%rax)
jne 0x121c2d2
... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<32u, true>, clang::interp::IntegralAP<false>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<32u, true>&, clang::interp::IntegralAP<false>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
je 0x121c569
movl 0x8(%r14), %edx
movl %edx, 0x18(%rsp)
cmpl $0x40, %edx
ja 0x121c506
movq (%r14), %rax
movq %rax, 0x10(%rsp)
jmp 0x1... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<32u, true>, clang::interp::IntegralAP<true>, (clang::interp::ShiftDir)1>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<32u, true>&, clang::interp::IntegralAP<true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
je 0x121d0ff
movl 0x8(%r14), %edx
movl %edx, 0x8(%rsp)
cmpl $0x40, %edx
ja 0x121d0a1
movq (%r14), %rax
movq %rax, (%rsp)
jmp 0x121d0b... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<32u, false>, clang::interp::Integral<8u, true>, (clang::interp::ShiftDir)1>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<32u, false>&, clang::interp::Integral<8u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
movb (%r15), %al
jne 0x121d7e2
testb %al, %al
jns 0x121d7e7
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x20(%rsp), %r... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::Integral<32u, false>, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<32u, false> const&, clang::interp::Integral<32u, false> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpl $0x2, %r8d
jb 0x121e321
movl %r8d, %ebp
movq %rcx, %r14
cmpl %r8d, (%rcx)
jb 0x121e321
movq %rdi, %rbx
movq 0xc0(%rdi), %rdi
callq 0x1250a24
movl (%r14), %ecx
movq %rsp, %r15
movl $0x20, 0x8(%r15)
movq %rcx, (%r15)
movb $0x1, 0xc(%r15)
movq 0x8(%rax), %r... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<64u, true>, clang::interp::Integral<8u, true>, (clang::interp::ShiftDir)1>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, true>&, clang::interp::Integral<8u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
movb (%r15), %al
jne 0x121f7b8
testb %al, %al
jns 0x121f7bd
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x18(%rsp), %rsi
movq %ra... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<64u, true>, clang::interp::Integral<16u, true>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, true>&, clang::interp::Integral<16u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
movzwl (%r15), %eax
jne 0x121fda7
testw %ax, %ax
jns 0x121fdae
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x18(%rsp), %rsi
movq ... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<64u, true>, clang::interp::Integral<16u, false>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, true>&, clang::interp::Integral<16u, false>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
je 0x12201f6
andw $0x3f, (%r15)
cmpq $0x0, (%r14)
jns 0x122027a
movq %rbx, %rdi
callq 0x125857c
testb $0x40, 0x1(%rax)
jne 0x122027a
movq 0xc0(%... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<64u, true>, clang::interp::Integral<64u, true>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, true>&, clang::interp::Integral<64u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
movq (%r14), %rax
jne 0x1220cb9
testq %rax, %rax
jns 0x1220cbf
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x18(%rsp), %rsi
movq ... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::Integral<64u, true>, clang::interp::Integral<64u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, true> const&, clang::interp::Integral<64u, false> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x2, %r8d
jb 0x12212af
movl %r8d, %r13d
cmpq %r13, (%r14)
jb 0x12212af
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x1250a24
movq (%r14), %rcx
leaq 0x8(%rsp), %rbp
mov... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::Integral<64u, true>, clang::interp::IntegralAP<true>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, true>&, clang::interp::IntegralAP<true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %rbx
callq 0x125857c
testb $0x40, 0x2f(%rax)
je 0x1221cbc
movl 0x8(%r14), %edx
movl %edx, 0x18(%rsp)
cmpl $0x40, %edx
ja 0x1221c59
movq (%r14), %rax
movq %rax, 0x10(%rsp)
jmp 0x1... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::Integral<64u, false>, clang::interp::IntegralAP<false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Integral<64u, false> const&, clang::interp::IntegralAP<false> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, %ebp
movq %rcx, %r14
movq %rsi, (%rsp)
movq %rdi, %rbx
movl 0x8(%rcx), %eax
leal -0x1(%rax), %ecx
movl %ecx, %edx
shrl $0x3, %edx
andl $-0x8, %edx
addq (%r14), %rdx
cmpl $0x41, %eax
cmovbq %r14, %rdx
movq (%rdx), %rax
btq %rcx... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::IntegralAP<false>, clang::interp::Integral<8u, true>, (clang::interp::ShiftDir)0>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::IntegralAP<false>&, clang::interp::Integral<8u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
movl 0x8(%rdx), %r12d
callq 0x125857c
testb $0x40, 0x2f(%rax)
movb (%r14), %al
je 0x1224437
movb 0x8(%r15), %cl
decb %cl
andb %cl, %al
movb %al, (%r14)
testb %al, %al
js 0x1... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::IntegralAP<true>, clang::interp::Integral<8u, true>, (clang::interp::ShiftDir)1>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::IntegralAP<true>&, clang::interp::Integral<8u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
movl 0x8(%rdx), %r12d
callq 0x125857c
testb $0x40, 0x2f(%rax)
movb (%r14), %al
je 0x1229aeb
movb 0x8(%r15), %cl
decb %cl
andb %cl, %al
movb %al, (%r14)
testb %al, %al
js 0x1... | /AST/Interp/Interp.h |
bool clang::interp::CheckShift<clang::interp::IntegralAP<true>, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::IntegralAP<true> const&, clang::interp::Integral<8u, true> const&, unsigned int) | bool CheckShift(InterpState &S, CodePtr OpPC, const LT &LHS, const RT &RHS,
unsigned Bits) {
if (RHS.isNegative()) {
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
if (!S.noteUndefinedBehavior())
return false... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
movb (%rcx), %al
testb %al, %al
jns 0x1229e4b
movq 0xc0(%rbx), %rdi
movq %r12, %rsi
callq 0x12509c2
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
m... | /AST/Interp/Interp.h |
bool clang::interp::DoShift<clang::interp::IntegralAP<true>, clang::interp::Integral<16u, true>, (clang::interp::ShiftDir)1>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::IntegralAP<true>&, clang::interp::Integral<16u, true>&) | inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
const unsigned Bits = LHS.bitWidth();
// OpenCL 6.3j: shift values are effectively % word size of LHS.
if (S.getLangOpts().OpenCL)
RT::bitAnd(RHS, RT::from(LHS.bitWidth() - 1, RHS.bitWidth()),
RHS.bitWidth(), &RHS);
if (R... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
movl 0x8(%rdx), %r12d
callq 0x125857c
testb $0x40, 0x2f(%rax)
movzwl (%r14), %eax
je 0x122ad12
movl 0x8(%r15), %ecx
decl %ecx
andl %ecx, %eax
movw %ax, (%r14)
testw %ax, %ax... | /AST/Interp/Interp.h |
bool clang::interp::AddSubMulHelper<clang::interp::Integral<8u, true>, &clang::interp::Integral<8u, true>::sub(clang::interp::Integral<8u, true>, clang::interp::Integral<8u, true>, unsigned int, clang::interp::Integral<8u, true>*), std::minus>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int, clang::in... | bool AddSubMulHelper(InterpState &S, CodePtr OpPC, unsigned Bits, const T &LHS,
const T &RHS) {
// Fast path - add the numbers with fixed width.
T Result;
if (!OpFW(LHS, RHS, Bits, &Result)) {
S.Stk.push<T>(Result);
return true;
}
// If for some reason evaluation continues, use t... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, %r15
movq %rcx, %r13
movl %edx, %r12d
movq %rsi, 0x18(%rsp)
movq %rdi, %rbx
movb (%rcx), %bpl
movb (%r8), %r14b
movq 0xb0(%rdi), %rdi
movl $0x8, %esi
callq 0x1250efe
subb %r14b, %bpl
movb %bpl, (%rax)
movb $0x1, %bpl
jno 0x122f... | /AST/Interp/Interp.h |
clang::interp::Function::Function(clang::interp::Program&, clang::FunctionDecl const*, unsigned int, llvm::SmallVectorImpl<clang::interp::PrimType>&&, llvm::DenseMap<unsigned int, std::pair<clang::interp::PrimType, clang::interp::Descriptor*>, llvm::DenseMapInfo<unsigned int, void>, llvm::detail::DenseMapPair<unsigned ... | Function::Function(Program &P, const FunctionDecl *F, unsigned ArgSize,
llvm::SmallVectorImpl<PrimType> &&ParamTypes,
llvm::DenseMap<unsigned, ParamDescriptor> &&Params,
llvm::SmallVectorImpl<unsigned> &&ParamOffsets,
bool HasThisPointer, bool ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r12
movq %r8, %r13
movl %ecx, %ebp
movq %rdx, %r14
movq %rdi, %rbx
movq %rsi, (%rdi)
movq %rdx, %rdi
callq 0x110fcca
movl %eax, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
movl %ebp, 0x1c(%rbx)
leaq 0x60(%rbx), %rax
xorps ... | /AST/Interp/Function.cpp |
clang::interp::interp__builtin_strlen(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::InterpFrame const*, clang::CallExpr const*) | static bool interp__builtin_strlen(InterpState &S, CodePtr OpPC,
const InterpFrame *Frame,
const CallExpr *Call) {
const Pointer &StrPtr = getParam<Pointer>(Frame, 0);
if (!CheckArray(S, OpPC, StrPtr))
return false;
if (!CheckLive(S, OpPC... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x20(%rdx), %rax
movq 0x1c8(%rax), %rax
movl (%rax), %esi
movq %rdx, %rdi
callq 0x120bff6
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x125153c
movq %rbx, %rdi
movq %r15... | /AST/Interp/InterpBuiltin.cpp |
clang::interp::interp__builtin_parity(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::InterpFrame const*, clang::interp::Function const*, clang::CallExpr const*) | static bool interp__builtin_parity(InterpState &S, CodePtr OpPC,
const InterpFrame *Frame,
const Function *Func, const CallExpr *Call) {
PrimType ArgT = *S.getContext().classify(Call->getArg(0)->getType());
APSInt Val = peekToAPSInt(S.Stk, ArgT);... | pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0xb8(%rdi), %rdi
movl (%rsi), %eax
movl %eax, %ecx
shrl $0x18, %ecx
addq %rsi, %rcx
shrl $0xf, %eax
andl $0x8, %eax
movq 0x8(%rax,%rcx), %rax
movq 0x8(%rax), %rsi
callq 0x11b90a4
movq 0xb0(%rbx), %rsi
movq %rsp, %r15
movq %r15, %rdi
... | /AST/Interp/InterpBuiltin.cpp |
clang::interp::interp__builtin_os_log_format_buffer_size(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::InterpFrame const*, clang::interp::Function const*, clang::CallExpr const*) | static bool interp__builtin_os_log_format_buffer_size(InterpState &S,
CodePtr OpPC,
const InterpFrame *Frame,
const Function *Func,
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
movabsq $0x400000000, %rax # imm = 0x400000000
movq %rax, -0x8(%r12)
movq 0x18(%rdi), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
leaq 0x18(%rsp), %r15
mo... | /AST/Interp/InterpBuiltin.cpp |
clang::interp::InterpretOffsetOf(clang::interp::InterpState&, clang::interp::CodePtr, clang::OffsetOfExpr const*, llvm::ArrayRef<long>, long&) | bool InterpretOffsetOf(InterpState &S, CodePtr OpPC, const OffsetOfExpr *E,
llvm::ArrayRef<int64_t> ArrayIndices,
int64_t &IntResult) {
CharUnits Result;
unsigned N = E->getNumComponents();
assert(N > 0);
unsigned ArrayIndex = 0;
QualType CurrentType = E->getType... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x28(%rsp)
movq %rcx, 0x30(%rsp)
movl 0x20(%rdx), %eax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x12375b5
movq $0x0, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x18(%rdx), %rax
movq (%rax), %r13
shlq $0x4, 0x20(%rsp)
leaq 0x4153ea(... | /AST/Interp/InterpBuiltin.cpp |
clang::interp::peekToAPSInt(clang::interp::InterpStack&, clang::interp::PrimType, unsigned long) | static APSInt peekToAPSInt(InterpStack &Stk, PrimType T, size_t Offset = 0) {
if (Offset == 0)
Offset = align(primSize(T));
APSInt R;
INT_TYPE_SWITCH(T, R = Stk.peek<T>(Offset).toAPSInt());
return R;
} | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
testq %rcx, %rcx
jne 0x1238543
movl %ebp, %edi
callq 0x1254ace
movq %rax, %rcx
addq $0x7, %rcx
andq $-0x8, %rcx
movl %ebp, %eax
leaq 0x41433c(%rip), %rdx # 0x164c888
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax... | /AST/Interp/InterpBuiltin.cpp |
bool clang::interp::Ret<(clang::interp::PrimType)12, clang::interp::Pointer>(clang::interp::InterpState&, clang::interp::CodePtr&, clang::APValue&) | bool Ret(InterpState &S, CodePtr &PC, APValue &Result) {
const T &Ret = S.Stk.pop<T>();
// Make sure returned pointers are live. We might be trying to return a
// pointer or reference to a local variable.
// Just return false, since a diagnostic has already been emitted in Sema.
if constexpr (std::is_same_v<... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0xb0(%rdi), %rsi
movq %rsp, %r12
movq %r12, %rdi
callq 0x11ba7a4
movl 0x28(%r12), %eax
testl %eax, %eax
je 0x1238c04
movq (%rsp), %rcx
orq 0x20(%rsp), %rcx
sete %cl
cmpl $0x1, %eax
je 0x1238c18
t... | /AST/Interp/Interp.h |
clang::interp::EvaluationResult::checkReturnValue(clang::interp::InterpState&, clang::interp::Context const&, clang::interp::Pointer const&, clang::interp::SourceInfo const&) | bool EvaluationResult::checkReturnValue(InterpState &S, const Context &Ctx,
const Pointer &Ptr,
const SourceInfo &Info) {
// Collect all blocks that this pointer (transitively) points to and
// return false if any of them is a dynamic b... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rsi, %rbx
xorps %xmm0, %xmm0
leaq 0x28(%rsp), %r13
movaps %xmm0, -0x28(%r13)
movl $0x0, -0x18(%r13)
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movq %rsp, %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0... | /AST/Interp/EvaluationResult.cpp |
std::pair<llvm::DenseMapIterator<clang::interp::Block const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::interp::Block const*, void>, llvm::detail::DenseSetPair<clang::interp::Block const*>, false>, bool> llvm::DenseMapBase<llvm::DenseMap<clang::interp::Block const*, llvm::detail::DenseSetEmpty, llvm::Dense... | std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&... Args) {
BucketT *TheBucket;
if (LookupBucketFor(Key, TheBucket))
return std::make_pair(makeIterator(TheBucket,
shouldReverseIterate<KeyT>()
? getBuckets()
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r12
movq %rsi, %rdi
movq %rdx, %rsi
movq %r12, %rdx
callq 0x123a7a8
movl %eax, %ecx
movq (%r12), %rax
testb %cl, %cl
je 0x123a76a
xorl %ecx, %ecx
jmp 0x123a783
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %r... | /llvm/ADT/DenseMap.h |
llvm::detail::DenseSetPair<clang::interp::Block const*>* llvm::DenseMapBase<llvm::DenseMap<clang::interp::Block const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::interp::Block const*, void>, llvm::detail::DenseSetPair<clang::interp::Block const*>>, clang::interp::Block const*, llvm::detail::DenseSetEmpty, ... | BucketT *InsertIntoBucketImpl(const KeyT &Key, const LookupKeyT &Lookup,
BucketT *TheBucket) {
incrementEpoch();
// If the load of the hash table is more than 3/4, or if fewer than 1/8 of
// the buckets are empty (meaning that many are filled with tombstones),
// grow th... | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rax
movq %rdx, %r14
movq %rdi, %rbx
movl 0x8(%rdi), %ecx
movl 0x10(%rdi), %esi
leal 0x4(,%rcx,4), %edx
leal (%rsi,%rsi,2), %edi
cmpl %edi, %edx
jae 0x123a875
notl %ecx
addl %esi, %ecx
subl 0xc(%rbx), %ecx
movl %esi, %edx
shrl $0x3, %edx
cmpl %edx, %ecx
jbe 0... | /llvm/ADT/DenseMap.h |
llvm::DenseMapBase<llvm::DenseMap<clang::interp::Block const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::interp::Block const*, void>, llvm::detail::DenseSetPair<clang::interp::Block const*>>, clang::interp::Block const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::interp::Block const*, void>, ll... | const_iterator find(const_arg_type_t<KeyT> Val) const {
const BucketT *TheBucket;
if (LookupBucketFor(Val, TheBucket))
return makeConstIterator(TheBucket,
shouldReverseIterate<KeyT>() ? getBuckets()
: getBucketsEnd(... | pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movq %rsp, %rdx
movq %rax, %rsi
callq 0x123a7a8
testb %al, %al
je 0x123ab31
movq (%rsp), %rax
movl 0x10(%rbx), %edx
shlq $0x3, %rdx
addq (%rbx), %rdx
jmp 0x123ab3e
movl 0x10(%rbx), %eax
shlq $0x3, %rax
addq (%rbx), %rax
movq %rax, %rdx
a... | /llvm/ADT/DenseMap.h |
llvm::DenseMapBase<llvm::DenseMap<clang::Expr const*, clang::interp::DynamicAllocator::AllocationSite, llvm::DenseMapInfo<clang::Expr const*, void>, llvm::detail::DenseMapPair<clang::Expr const*, clang::interp::DynamicAllocator::AllocationSite>>, clang::Expr const*, clang::interp::DynamicAllocator::AllocationSite, llvm... | void clear() {
incrementEpoch();
if (getNumEntries() == 0 && getNumTombstones() == 0) return;
// If the capacity of the array is huge, and the # elements used is small,
// shrink the array.
if (getNumEntries() * 4 < getNumBuckets() && getNumBuckets() > 64) {
shrink_and_clear();
return;
... | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %ecx
testl %ecx, %ecx
jne 0x123acaf
cmpl $0x0, 0xc(%rbx)
je 0x123ad1b
shll $0x2, %ecx
movl 0x10(%rbx), %eax
cmpl %eax, %ecx
setae %cl
cmpl $0x41, %eax
setb %dl
orb %cl, %dl
jne 0x123acd1
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x123b61c
testq %r... | /llvm/ADT/DenseMap.h |
clang::interp::DynamicAllocator::allocate(clang::interp::Descriptor const*, unsigned long, unsigned int) | Block *DynamicAllocator::allocate(const Descriptor *ElementDesc,
size_t NumElements, unsigned EvalID) {
// Create a new descriptor for an array of the specified size and
// element type.
const Descriptor *D = allocateDescriptor(
ElementDesc->asExpr(), ElementDesc, Descripto... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0xc(%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rsi), %rbx
movq %rbx, %rbp
andq $-0x4, %rbp
addq $0x18, %rdi
movl $0x50, %esi
movl $0x4, %edx
callq 0x465442
movq %rax, %r13
orq $0x2, %rbp
testb $0x2, %bl
movl ... | /AST/Interp/DynamicAllocator.cpp |
llvm::SmallVectorImpl<clang::interp::DynamicAllocator::Allocation>::clear() | void clear() {
this->destroy_range(this->begin(), this->end());
this->Size = 0;
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %r14d
testq %r14, %r14
je 0x123b51c
movq (%rbx), %r15
shlq $0x3, %r14
movq -0x8(%r15,%r14), %rdi
testq %rdi, %rdi
je 0x123b50d
callq 0x431260
movq $0x0, -0x8(%r15,%r14)
addq $-0x8, %r14
jne 0x123b4fe
movl $0x0, 0x8(%rbx)
popq %rbx
popq %r14
popq %r15
retq... | /llvm/ADT/SmallVector.h |
llvm::DenseMap<clang::Expr const*, clang::interp::DynamicAllocator::AllocationSite, llvm::DenseMapInfo<clang::Expr const*, void>, llvm::detail::DenseMapPair<clang::Expr const*, clang::interp::DynamicAllocator::AllocationSite>>::shrink_and_clear() | void shrink_and_clear() {
unsigned OldNumBuckets = NumBuckets;
unsigned OldNumEntries = NumEntries;
this->destroyAll();
// Reduce the number of buckets.
unsigned NewNumBuckets = 0;
if (OldNumEntries)
NewNumBuckets = std::max(64, 1 << (Log2_32_Ceil(OldNumEntries) + 1));
if (NewNumBucke... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %ebp
movl 0x10(%rdi), %r14d
callq 0x123b5d2
testl %ebp, %ebp
je 0x123b63f
decl %ebp
je 0x123b643
bsrl %ebp, %eax
xorl $0x1f, %eax
jmp 0x123b648
xorl %ebp, %ebp
jmp 0x123b65e
movl $0x20, %eax
movb $0x21, %cl
subb %al, %cl
movl $0x1, %eax
shll %cl, %eax
cmp... | /llvm/ADT/DenseMap.h |
clang::interp::cleanupAfterFunctionCall(clang::interp::InterpState&, clang::interp::CodePtr) | void cleanupAfterFunctionCall(InterpState &S, CodePtr OpPC) {
assert(S.Current);
const Function *CurFunc = S.Current->getFunction();
assert(CurFunc);
if (CurFunc->isUnevaluatedBuiltin())
return;
// Some builtin functions require us to only look at the call site, since
// the classified parameter types... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0xc0(%rdi), %rax
movq 0x20(%rax), %r14
cmpb $0x0, 0x1ff(%r14)
jne 0x123bdab
movq %rdi, %rbx
movq 0x10(%r14), %rdi
xorl %esi, %esi
callq 0x11123ac
movq 0xc0(%rbx), %rcx
movq 0x8(%rcx), %rdi
testl %eax, %eax
je 0x123bdb7
movq 0x88(%rcx), %rsi
callq 0x1250a24
mov... | /AST/Interp/Interp.cpp |
clang::interp::CheckArray(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&) | bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
if (!Ptr.isUnknownSizeArray())
return true;
const SourceInfo &E = S.Current->getSource(OpPC);
S.FFDiag(E, diag::note_constexpr_unsized_array_indexed);
return false;
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movb $0x1, %bl
cmpl $0x0, 0x28(%rdx)
jne 0x123c214
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
callq 0x11fe16a
cmpl $-0x1, 0xc(%rax)
jne 0x123c214
movq 0xc0(%r14), %rdi
movq %r15, %rsi
callq 0x12509c2
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
xorl %ebx, %ebx
movq %r14,... | /AST/Interp/Interp.cpp |
clang::interp::CheckRange(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&, clang::AccessKinds) | bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
AccessKinds AK) {
if (!Ptr.isOnePastEnd())
return true;
const SourceInfo &Loc = S.Current->getSource(OpPC);
S.FFDiag(Loc, diag::note_constexpr_access_past_end)
<< AK << S.Current->getRange(OpPC);
return false;
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
callq 0x11fe6e4
movl %eax, %ebx
testb %al, %al
je 0x123c61b
movq 0xc0(%r15), %rdi
movq %r14, %rsi
callq 0x12509c2
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r15, %rdi
movl $0x878, %e... | /AST/Interp/Interp.cpp |
clang::interp::CheckDowncast(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&, unsigned int) | bool CheckDowncast(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
uint32_t Offset) {
uint32_t MinOffset = Ptr.getDeclDesc()->getMetadataSize();
uint32_t PtrOffset = Ptr.getByteOffset();
// We subtract Offset from PtrOffset. The result must be at least
// MinOffset.
if (Offset < PtrOffse... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdx), %r13
movq 0x18(%rdx), %rax
addq $0x20, %rax
cmpl $0x1, 0x28(%rdx)
cmoveq %r13, %rax
movq (%rax), %rax
movl 0x10(%rax), %r12d
jne 0x123c7b8
movl (%r15), %ecx... | /AST/Interp/Interp.cpp |
clang::interp::CheckMutable(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&) | bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
assert(Ptr.isLive() && "Pointer is not live");
if (!Ptr.isMutable())
return true;
// In C++14 onwards, it is permitted to read a mutable member whose
// lifetime began within the evaluation.
if (S.getLangOpts().CPlusPlus14 &&
Ptr... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movb $0x1, %bpl
cmpl $0x0, 0x28(%rdx)
jne 0x123ca2e
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x11fdede
testb %al, %al
jne 0x123ca2e
movl 0x20(%r14), %eax
movq 0x18(%r14), %rcx
testb $0x20, 0x1c(%rcx,%rax)
je 0x123ca2e
movq %rbx, %rdi
ca... | /AST/Interp/Interp.cpp |
clang::interp::CheckInitialized(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&, clang::AccessKinds) | bool CheckInitialized(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
AccessKinds AK) {
assert(Ptr.isLive());
if (Ptr.isInitialized())
return true;
if (const auto *VD = Ptr.getDeclDesc()->asVarDecl();
VD && VD->hasGlobalStorage()) {
const SourceInfo &Loc = S.Current->getSou... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
callq 0x1252152
movl %eax, %ebx
testb %al, %al
jne 0x123cc88
leaq 0x18(%r12), %rax
movq 0x18(%r12), %rcx
addq $0x20, %rcx
cmpl $0x1, 0x28(%r12)
cmoveq %rax, %rcx
movq (... | /AST/Interp/Interp.cpp |
clang::interp::CheckGlobalInitialized(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&) | bool CheckGlobalInitialized(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
if (Ptr.isInitialized())
return true;
assert(S.getLangOpts().CPlusPlus);
const auto *VD = cast<VarDecl>(Ptr.getDeclDesc()->asValueDecl());
if ((!VD->hasConstantInitialization() &&
VD->mightBeUsableInConstantExpressions(S... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
callq 0x1252152
movl %eax, %ebx
testb %al, %al
jne 0x123ce2d
leaq 0x18(%r12), %rax
movq 0x18(%r12), %rcx
addq $0x20, %rcx
cmpl $0x1, 0x28(%r12)
cmoveq %rax, %rcx
movq (%rcx), %rax
movq (%rax), %rax
mov... | /AST/Interp/Interp.cpp |
clang::interp::CheckDummy(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Pointer const&, clang::AccessKinds) | bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
AccessKinds AK) {
if (!Ptr.isDummy())
return true;
const Descriptor *Desc = Ptr.getDeclDesc();
const ValueDecl *D = Desc->asValueDecl();
if (!D)
return false;
if (AK == AK_Read || AK == AK_Increment || AK == AK_Decreme... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movb $0x1, %bpl
cmpl $0x0, 0x28(%rdx)
je 0x123d18a
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x18(%rdx), %rax
testq %rax, %rax
je 0x123d17f
movq 0x20(%rax), %rax
cmpb $0x1, 0x34(%rax)
jne 0x123d17f
movq %rsi, %r14
movq (%rax), %rdx
movl %e... | /AST/Interp/Interp.cpp |
bool clang::interp::GetLocal<(clang::interp::PrimType)14, clang::interp::MemberPointer>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int) | bool GetLocal(InterpState &S, CodePtr OpPC, uint32_t I) {
const Pointer &Ptr = S.Current->getLocalPointer(I);
if (!CheckLoad(S, OpPC, Ptr))
return false;
S.Stk.push<T>(Ptr.deref<T>());
return true;
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0xc0(%rdi), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x125068a
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x123ce3b
movl %eax, %ebx
testb %al, %al
je 0x124e68f
movq 0xb0(%r14), %r14
movq %rsp, %rdi
callq ... | /AST/Interp/Interp.h |
bool clang::interp::SetLocal<(clang::interp::PrimType)13, clang::interp::FunctionPointer>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int) | bool SetLocal(InterpState &S, CodePtr OpPC, uint32_t I) {
S.Current->setLocal<T>(I, S.Stk.pop<T>());
return true;
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movq 0xb0(%rdi), %r14
movq 0xc0(%rdi), %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x1250f7a
movq (%rax), %r12
movb 0x8(%rax), %bpl
movl $0x10, %esi
movq %r14, %rdi
callq 0x1250fae
movq %r15, %rdi
movl %ebx, %esi
callq 0x124f5e4
movq %r12, (%rax)
mo... | /AST/Interp/Interp.h |
void clang::interp::InterpStack::discard<clang::interp::IntegralAP<false>>() | void discard() {
#ifndef NDEBUG
assert(!ItemTypes.empty());
assert(ItemTypes.back() == toPrimType<T>());
ItemTypes.pop_back();
#endif
T *Ptr = &peekInternal<T>();
Ptr->~T();
shrink(aligned_size<T>());
} | pushq %rbx
movq %rdi, %rbx
movl $0x10, %esi
callq 0x1250f7a
cmpl $0x41, 0x8(%rax)
jb 0x124f0a9
movq (%rax), %rdi
testq %rdi, %rdi
je 0x124f0a9
callq 0x431260
movl $0x10, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x1250fae
nop
| /AST/Interp/InterpStack.h |
void clang::interp::InterpStack::discard<clang::interp::IntegralAP<true>>() | void discard() {
#ifndef NDEBUG
assert(!ItemTypes.empty());
assert(ItemTypes.back() == toPrimType<T>());
ItemTypes.pop_back();
#endif
T *Ptr = &peekInternal<T>();
Ptr->~T();
shrink(aligned_size<T>());
} | pushq %rbx
movq %rdi, %rbx
movl $0x10, %esi
callq 0x1250f7a
cmpl $0x41, 0x8(%rax)
jb 0x124f0d9
movq (%rax), %rdi
testq %rdi, %rdi
je 0x124f0d9
callq 0x431260
movl $0x10, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x1250fae
nop
| /AST/Interp/InterpStack.h |
clang::interp::Floating::bitcastFromMemory(std::byte const*, llvm::fltSemantics const&) | static Floating bitcastFromMemory(const std::byte *Buff,
const llvm::fltSemantics &Sem) {
size_t Size = APFloat::semanticsSizeInBits(Sem);
llvm::APInt API(Size, true);
llvm::LoadIntFromMemory(API, (const uint8_t *)Buff, Size / 8);
return Floating(APFloat(Sem, API));
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x48b132
movl %eax, %ebp
movq %rsp, %r14
movl $0x1, %edx
movq %r14, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x466700
shrl $0x3, %ebp
movq %r14, %rdi
movq %r12, %rsi
movl %ebp,... | /AST/Interp/Floating.h |
clang::interp::InterpFrame::~InterpFrame() | InterpFrame::~InterpFrame() {
for (auto &Param : Params)
S.deallocate(reinterpret_cast<Block *>(Param.second.get()));
// When destroying the InterpFrame, call the Dtor for all block
// that haven't been destroyed via a destroy() op yet.
// This happens when the execution is interruped midway-through.
if ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpl $0x0, 0xb8(%rdi)
je 0x124f928
movq 0xb0(%rbx), %r14
movl 0xc0(%rbx), %ecx
movq %rcx, %rax
shlq $0x4, %rax
movq %r14, %r15
testq %rcx, %rcx
je 0x124fa2b
movq %rax, %rcx
movq %r14, %r15
cmpl $-0x2, (%r15)
jb 0x124fa2b
... | /AST/Interp/InterpFrame.cpp |
clang::interp::InterpFrame::popArgs() | void InterpFrame::popArgs() {
for (PrimType Ty : Func->args_reverse())
TYPE_SWITCH(Ty, S.Stk.discard<T>());
} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x20(%rdi), %rax
movl 0x188(%rax), %r15d
testq %r15, %r15
je 0x124fbc2
movq %rdi, %rbx
movq 0x180(%rax), %r12
shlq $0x2, %r15
leaq 0x3fe37c(%rip), %r13 # 0x164de80
movl -0x4(%r12,%r15), %eax
cmpq $0xe, %rax
ja 0x124fb3e
movslq (%r13,%rax,4), %rax
addq %r13,... | /AST/Interp/InterpFrame.cpp |
clang::interp::InterpFrame::getCallRange() const | SourceRange InterpFrame::getCallRange() const {
if (!Caller->Func) {
if (SourceRange NullRange = S.getRange(nullptr, {}); NullRange.isValid())
return NullRange;
return S.EvalLocation;
}
return S.getRange(Caller->Func, RetPC - sizeof(uintptr_t));
} | pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rdi
movq 0x20(%rax), %rsi
addq $0x10, %rdi
testq %rsi, %rsi
je 0x1250652
movq 0x88(%rbx), %rdx
addq $-0x8, %rdx
callq 0x1257ef8
movq %rax, %rcx
shrq $0x20, %rcx
jmp 0x125067f
xorl %esi, %esi
xorl %edx, %edx
callq 0x1257ef8
movq %rax, %rcx
shrq $0x20, %rc... | /AST/Interp/InterpFrame.cpp |
clang::interp::InterpFrame::getRange(clang::interp::CodePtr) const | SourceRange InterpFrame::getRange(CodePtr PC) const {
if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller)
return Caller->getRange(RetPC);
return S.getRange(Func, PC);
} | movq %rsi, %rdx
movq 0x20(%rdi), %rsi
testq %rsi, %rsi
je 0x1250afe
cmpb $0x1, 0x1fc(%rsi)
jne 0x1250adf
movq 0x10(%rsi), %rax
testb $0x2, 0x1d(%rax)
je 0x1250b00
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x1250b00
movq 0x88(%rdi), %rdx
movq 0x20(%rax), %rsi
movq %rax, %rdi
testq %rsi, %rsi
jne 0x1250acc
movq %rax, %rdi... | /AST/Interp/InterpFrame.cpp |
clang::interp::InterpState::InterpState(clang::interp::State&, clang::interp::Program&, clang::interp::InterpStack&, clang::interp::Context&, clang::interp::SourceMapper*) | State() = default; | movb $0x0, 0x8(%rdi)
leaq 0xaff7f7(%rip), %rax # 0x1d50820
leaq 0x10(%rax), %r10
movq %r10, (%rdi)
addq $0xa0, %rax
movq %rax, 0x10(%rdi)
movq %rsi, 0x18(%rdi)
xorl %eax, %eax
movq %rax, 0x20(%rdi)
movq %r9, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movl %eax, 0x40(%rdi)
leaq 0x68(%rdi), %rsi
movups %xm... | /AST/Interp/State.h |
clang::interp::InterpState::cleanup() | void InterpState::cleanup() {
// As a last resort, make sure all pointers still pointing to a dead block
// don't point to it anymore.
for (DeadBlock *DB = DeadBlocks; DB; DB = DB->Next) {
for (Pointer *P = DB->B.Pointers; P; P = P->Next) {
P->PointeeStorage.BS.Pointee = nullptr;
}
}
Alloc.clea... | movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x12511c4
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0x12511be
movq $0x0, 0x18(%rcx)
movq 0x10(%rcx), %rcx
jmp 0x12511ab
movq 0x10(%rax), %rax
jmp 0x12511a2
addq $0x30, %rdi
jmp 0x123ab78
nop
| /AST/Interp/InterpState.cpp |
clang::interp::InterpState::maybeDiagnoseDanglingAllocations() | bool InterpState::maybeDiagnoseDanglingAllocations() {
bool NoAllocationsLeft = (Alloc.getNumAllocations() == 0);
if (!checkingPotentialConstantExpression()) {
for (const auto &It : Alloc.allocation_sites()) {
assert(It.second.size() > 0);
const Expr *Source = It.first;
CCEDiag(Source->getEx... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x38(%rdi), %eax
movl %eax, 0x4(%rsp)
movq 0x18(%rdi), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
testb %al, %al
jne 0x12513de
cmpl $0x0, 0x38(%rbx)
je 0x12513de
movq 0x30(%rbx), %rbp
movl 0x40(%rbx), %eax
movq %rbp, %... | /AST/Interp/InterpState.cpp |
clang::interp::Pointer::Pointer(clang::interp::Block*) | Pointer::Pointer(Block *Pointee)
: Pointer(Pointee, Pointee->getDescriptor()->getMetadataSize(),
Pointee->getDescriptor()->getMetadataSize()) {} | movq %rdi, %rax
movq 0x20(%rsi), %rcx
movl 0x10(%rcx), %ecx
movq %rcx, (%rdi)
movl $0x0, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %rsi, 0x18(%rdi)
movl %ecx, 0x20(%rdi)
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x1377bf0
nop
| /AST/Interp/Pointer.cpp |
clang::interp::Program::getGlobal(clang::ValueDecl const*) | std::optional<unsigned> Program::getGlobal(const ValueDecl *VD) {
if (auto It = GlobalIndices.find(VD); It != GlobalIndices.end())
return It->second;
// Find any previous declarations which were already evaluated.
std::optional<unsigned> Index;
for (const Decl *P = VD->getPreviousDecl(); P; P = P->getPrevi... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0xf8(%rdi), %rbx
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x1256060
testb %al, %al
je 0x1254e54
movq (%rsp), %rax
movl 0x108(%r15), %ecx
shlq $0x4, %rcx
addq 0xf8(%... | /AST/Interp/Program.cpp |
clang::interp::Program::getOrCreateDummy(clang::ValueDecl const*) | std::optional<unsigned> Program::getOrCreateDummy(const ValueDecl *VD) {
// Dedup blocks since they are immutable and pointers cannot be compared.
if (auto It = DummyVariables.find(VD); It != DummyVariables.end())
return It->second;
QualType QT = VD->getType();
if (const auto *RT = QT->getAs<ReferenceType>... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
movabsq $0x100000000, %rbp # imm = 0x100000000
movq %rsi, 0x18(%rsp)
leaq 0x128(%rdi), %rbx
leaq 0x20(%rsp), %rsi
movq %r15, (%rsi)
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1014862
testb %al, %al... | /AST/Interp/Program.cpp |
llvm::DenseMapBase<llvm::DenseMap<void const*, unsigned int, llvm::DenseMapInfo<void const*, void>, llvm::detail::DenseMapPair<void const*, unsigned int>>, void const*, unsigned int, llvm::DenseMapInfo<void const*, void>, llvm::detail::DenseMapPair<void const*, unsigned int>>::FindAndConstruct(void const* const&) | value_type& FindAndConstruct(const KeyT &Key) {
BucketT *TheBucket;
if (LookupBucketFor(Key, TheBucket))
return *TheBucket;
return *InsertIntoBucket(TheBucket, Key);
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x1256060
movl %eax, %ecx
movq (%r15), %rax
testb %cl, %cl
jne 0x125626d
movq %r14, %rdi
movq %rbx, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x1256278
movq (%rbx), %rcx
movq %rcx, (%rax)
movl $... | /llvm/ADT/DenseMap.h |
llvm::detail::DenseMapPair<void const*, unsigned int>* llvm::DenseMapBase<llvm::DenseMap<void const*, unsigned int, llvm::DenseMapInfo<void const*, void>, llvm::detail::DenseMapPair<void const*, unsigned int>>, void const*, unsigned int, llvm::DenseMapInfo<void const*, void>, llvm::detail::DenseMapPair<void const*, uns... | BucketT *InsertIntoBucketImpl(const KeyT &Key, const LookupKeyT &Lookup,
BucketT *TheBucket) {
incrementEpoch();
// If the load of the hash table is more than 3/4, or if fewer than 1/8 of
// the buckets are empty (meaning that many are filled with tombstones),
// grow th... | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rax
movq %rdx, %r14
movq %rdi, %rbx
movl 0x8(%rdi), %ecx
movl 0x10(%rdi), %esi
leal 0x4(,%rcx,4), %edx
leal (%rsi,%rsi,2), %edi
cmpl %edi, %edx
jae 0x12562c7
notl %ecx
addl %esi, %ecx
subl 0xc(%rbx), %ecx
movl %esi, %edx
shrl $0x3, %edx
cmpl %edx, %ecx
jbe 0... | /llvm/ADT/DenseMap.h |
llvm::DenseMapBase<llvm::DenseMap<void const*, unsigned int, llvm::DenseMapInfo<void const*, void>, llvm::detail::DenseMapPair<void const*, unsigned int>>, void const*, unsigned int, llvm::DenseMapInfo<void const*, void>, llvm::detail::DenseMapPair<void const*, unsigned int>>::moveFromOldBuckets(llvm::detail::DenseMapP... | void moveFromOldBuckets(BucketT *OldBucketsBegin, BucketT *OldBucketsEnd) {
initEmpty();
// Insert all the old elements.
const KeyT EmptyKey = getEmptyKey();
const KeyT TombstoneKey = getTombstoneKey();
for (BucketT *B = OldBucketsBegin, *E = OldBucketsEnd; B != E; ++B) {
if (!KeyInfoT::isEqu... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq $0x0, 0x8(%rdi)
movl 0x10(%rdi), %ecx
testq %rcx, %rcx
je 0x125650d
movq (%r15), %rax
movabsq $0xfffffffffffffff, %rdx # imm = 0xFFFFFFFFFFFFFFF
addq %rdx, %rcx
andq %rcx, %rdx
andl $0x1, %ecx
ne... | /llvm/ADT/DenseMap.h |
clang::interp::Record::Record(clang::RecordDecl const*, llvm::SmallVector<clang::interp::Record::Base, 8u>&&, llvm::SmallVector<clang::interp::Record::Field, 8u>&&, llvm::SmallVector<clang::interp::Record::Base, 2u>&&, unsigned int, unsigned int) | Record::Record(const RecordDecl *Decl, BaseList &&SrcBases,
FieldList &&SrcFields, VirtualBaseList &&SrcVirtualBases,
unsigned VirtualSize, unsigned BaseSize)
: Decl(Decl), Bases(std::move(SrcBases)), Fields(std::move(SrcFields)),
BaseSize(BaseSize), VirtualSize(VirtualSize), IsU... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, 0x4(%rsp)
movq %r8, %r14
movq %rcx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
movabsq $0x800000000, %rbp # imm = 0x800000000
movq %rbp, 0x10(%rdi)
cmpl $0x0, 0x8(%rd... | /AST/Interp/Record.cpp |
clang::interp::State::addCallStack(unsigned int) | void State::addCallStack(unsigned Limit) {
// Determine which calls to skip, if any.
unsigned ActiveCalls = getCallStackDepth() - 1;
unsigned SkipStart = ActiveCalls, SkipEnd = SkipStart;
if (Limit && Limit < ActiveCalls) {
SkipStart = Limit / 2 + Limit % 2;
SkipEnd = ActiveCalls - Limit / 2;
}
// ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movl %esi, %ebp
movq %rdi, %r12
movq (%rdi), %rax
callq *0x70(%rax)
movl %eax, %r14d
leal -0x1(%r14), %eax
movl %ebp, %ebx
shrl %ebx
movl %ebp, %r13d
subl %ebx, %r13d
xorl %ecx, %ecx
movl %eax, %edx
subl %ebp, %... | /AST/Interp/State.cpp |
(anonymous namespace)::ItaniumSYCLNumberingContext::getManglingNumber(clang::CXXMethodDecl const*) | unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override {
unsigned Number = ItaniumNumberingContext::getManglingNumber(CallOperator);
std::pair<ManglingItr, bool> emplace_result =
ManglingNumbers.try_emplace(CallOperator, Number);
(void)emplace_result;
assert(emplace_result.second... | pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
movq %rsi, (%r14)
callq 0x1259012
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
subq $-0x80, %rbx
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x12591b4
movl (%r15), %eax
addq $0x30, %rsp
popq %rbx
popq %r14
... | /AST/ItaniumCXXABI.cpp |
(anonymous namespace)::ItaniumNumberingContext::getManglingNumber(clang::CXXMethodDecl const*) | unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override {
const CXXRecordDecl *Lambda = CallOperator->getParent();
assert(Lambda->isLambda());
// Computation of the <lambda-sig> is non-trivial and subtle. Rather than
// duplicating it here, just mangle the <lambda-sig> directly.
llvm... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x48(%rsi), %rdi
callq 0x111e3b4
movq 0x10(%rax), %rcx
movq %rcx, %rax
andq $-0x8, %rax
testb $0x4, %cl
je 0x1259042
movq (%rax), %rax
leaq -0x40(%rax), %r15
testq %rax, %rax
cmoveq %rax, %r15
leaq 0x58(%rsp), %r13
m... | /AST/ItaniumCXXABI.cpp |
std::pair<llvm::DenseMapIterator<clang::CXXMethodDecl const*, unsigned int, llvm::DenseMapInfo<clang::CXXMethodDecl const*, void>, llvm::detail::DenseMapPair<clang::CXXMethodDecl const*, unsigned int>, false>, bool> llvm::DenseMapBase<llvm::DenseMap<clang::CXXMethodDecl const*, unsigned int, llvm::DenseMapInfo<clang::C... | std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&... Args) {
BucketT *TheBucket;
if (LookupBucketFor(Key, TheBucket))
return std::make_pair(makeIterator(TheBucket,
shouldReverseIterate<KeyT>()
? getBuckets()
... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r13
movq %rsi, %rdi
movq %rdx, %rsi
movq %r13, %rdx
callq 0x110b184
movl %eax, %ecx
movq (%r13), %rax
testb %cl, %cl
je 0x12591ee
xorl %ecx, %ecx
jmp 0x125920e
movq %r... | /llvm/ADT/DenseMap.h |
clang::ItaniumMangleContext::create(clang::ASTContext&, clang::DiagnosticsEngine&, bool) | ItaniumMangleContext *ItaniumMangleContext::create(ASTContext &Context,
DiagnosticsEngine &Diags,
bool IsAux) {
return new ItaniumMangleContextImpl(
Context, Diags,
[](ASTContext &, const NamedDecl *) -> ... | pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl $0xc8, %edi
callq 0x431710
movq %r15, 0x8(%rax)
movq %r14, 0x10(%rax)
xorl %ecx, %ecx
movl %ecx, 0x18(%rax)
movb %bl, 0x1c(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movl %ecx, 0x30(%rax)
movups %xmm0, 0x38(%rax)
movl %ecx, 0x4... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::ItaniumMangleContextImpl::mangleThunk(clang::CXXMethodDecl const*, clang::ThunkInfo const&, bool, llvm::raw_ostream&) | void ItaniumMangleContextImpl::mangleThunk(const CXXMethodDecl *MD,
const ThunkInfo &Thunk,
bool ElideOverrideInfo,
raw_ostream &Out) {
// <special-name> ::= T <call-offset> <base encoding... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
leaq 0x40(%rsp), %rax
movq %rdi, -0x30(%rax)
movq %r8, -0x28(%rax)
movw $0x0, -0x20(%rax)
movb $0x0, -0x1e(%rax)
leaq 0x48(%rsp), %rdi
leaq 0x58(%r... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::ItaniumMangleContextImpl::mangleCXXRTTIName(clang::QualType, llvm::raw_ostream&, bool) | void ItaniumMangleContextImpl::mangleCXXRTTIName(
QualType Ty, raw_ostream &Out, bool NormalizeIntegers = false) {
// <special-name> ::= TS <type> # typeinfo name (null terminated byte string)
CXXNameMangler Mangler(*this, Out, NormalizeIntegers);
Mangler.getStream() << "_ZTS";
Mangler.mangleType(Ty);
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x120, %rsp # imm = 0x120
movq %rdx, %rax
movq %rsi, %r14
leaq 0x38(%rsp), %rdx
movq %rdi, -0x30(%rdx)
movq %rax, -0x28(%rdx)
movb %cl, -0x20(%rdx)
movw $0x0, -0x1f(%rdx)
leaq 0x40(%rsp), %rbx
leaq 0x50(%rsp), %rcx
xorps %xmm0, %xmm0
movups %xmm0, -0x30(%rcx)
xorl %esi,... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::ItaniumMangleContextImpl::mangleDynamicAtExitDestructor(clang::VarDecl const*, llvm::raw_ostream&) | void ItaniumMangleContextImpl::mangleDynamicAtExitDestructor(const VarDecl *D,
raw_ostream &Out) {
// Prefix the mangling of D with __dtor_.
CXXNameMangler Mangler(*this, Out);
Mangler.getStream() << "__dtor_";
if (shouldMangleDeclName(D))
Mangler... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movq %rdx, %rax
movq %rsi, %r15
movq %rdi, %r12
leaq 0x30(%rsp), %rcx
movq %rdi, -0x30(%rcx)
movq %rdx, -0x28(%rcx)
movw $0x0, -0x20(%rcx)
movb $0x0, -0x1e(%rcx)
leaq 0x38(%rsp), %rbx
leaq 0x48(%rsp), %rdx
xorps %xmm0, %xmm0
movups %... | /AST/ItaniumMangle.cpp |
llvm::DenseMap<clang::BlockDecl const*, unsigned int, llvm::DenseMapInfo<clang::BlockDecl const*, void>, llvm::detail::DenseMapPair<clang::BlockDecl const*, unsigned int>>::shrink_and_clear() | void shrink_and_clear() {
unsigned OldNumBuckets = NumBuckets;
unsigned OldNumEntries = NumEntries;
this->destroyAll();
// Reduce the number of buckets.
unsigned NewNumBuckets = 0;
if (OldNumEntries)
NewNumBuckets = std::max(64, 1 << (Log2_32_Ceil(OldNumEntries) + 1));
if (NewNumBucke... | pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x8(%rdi), %eax
movl 0x10(%rdi), %esi
testl %eax, %eax
je 0x125b626
decl %eax
je 0x125b62a
bsrl %eax, %eax
xorl $0x1f, %eax
jmp 0x125b62f
xorl %ebp, %ebp
jmp 0x125b645
movl $0x20, %eax
movb $0x21, %cl
subb %al, %cl
movl $0x1, %eax
shll %cl, %eax
cmpl $0x41, %eax
mov... | /llvm/ADT/DenseMap.h |
bool llvm::DenseMapBase<llvm::DenseMap<clang::NamedDecl const*, unsigned long, llvm::DenseMapInfo<clang::NamedDecl const*, void>, llvm::detail::DenseMapPair<clang::NamedDecl const*, unsigned long>>, clang::NamedDecl const*, unsigned long, llvm::DenseMapInfo<clang::NamedDecl const*, void>, llvm::detail::DenseMapPair<cla... | unsigned getNumBuckets() const {
return NumBuckets;
} | movl 0x10(%rdi), %ecx
testl %ecx, %ecx
je 0x125b836
pushq %rbx
movq (%rdi), %rdi
movq (%rsi), %rsi
movl %esi, %eax
shrl $0x4, %eax
movl %esi, %r9d
shrl $0x9, %r9d
xorl %eax, %r9d
decl %ecx
andl %ecx, %r9d
movl %r9d, %eax
shll $0x4, %eax
leaq (%rdi,%rax), %r8
movq (%rdi,%rax), %rbx
movb $0x1, %al
cmpq %rbx, %rsi
jne 0x1... | /llvm/ADT/DenseMap.h |
(anonymous namespace)::CXXNameMangler::mangleFunctionEncoding(clang::GlobalDecl) | void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) {
const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
// <encoding> ::= <function name> <bare-function-type>
// Don't mangle in the type if this isn't a decl we should typically mangle.
if (!Context.shouldMangleDeclName(FD)) {
mangleName(GD)... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp # imm = 0x328
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %r14
andq $-0x8, %r14
movq (%rdi), %rdi
movq %r14, %rsi
callq 0x127d61e
testb %al, %al
je 0x125bcf7
cmpb $0x1, 0x12(%rbx)
jne 0x125bd15
leaq 0x10(%rsp),... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleFunctionEncodingBareType(clang::FunctionDecl const*) | void CXXNameMangler::mangleFunctionEncodingBareType(const FunctionDecl *FD) {
if (FD->hasAttr<EnableIfAttr>()) {
FunctionTypeDepthState Saved = FunctionTypeDepth.push();
Out << "Ua9enable_ifI";
for (AttrVec::const_iterator I = FD->getAttrs().begin(),
E = FD->getAttrs().end... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xd26d9e
testb %al, %al
je 0x125c530
movl 0x2c(%rbx), %ebp
movl %ebp, %eax
andl $-0x2, %eax
addl $0x2, %eax
movl %eax, 0x2c(%rbx)
movq 0x8(%rbx), %rdi
movq 0x18(%rdi), %rcx
movq 0x20(%rdi),... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleType(clang::VariableArrayType const*) | void CXXNameMangler::mangleType(const VariableArrayType *T) {
Out << 'A';
// decayed vla types (size 0) will just be skipped.
if (T->getSizeExpr())
mangleExpression(T->getSizeExpr());
Out << '_';
mangleType(T->getElementType());
} | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq 0x20(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x125d711
leaq 0x1(%rax), %rcx
movq %rcx, 0x20(%rdi)
movb $0x41, (%rax)
jmp 0x125d71b
movl $0x41, %esi
callq 0x4801b4
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x125d733
movq %rbx, %rdi
... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleType(clang::DeducedTemplateSpecializationType const*) | void CXXNameMangler::mangleType(const DeducedTemplateSpecializationType *T) {
QualType Deduced = T->getDeducedType();
if (!Deduced.isNull())
return mangleType(Deduced);
TemplateDecl *TD = T->getTemplateName().getAsTemplateDecl();
assert(TD && "shouldn't form deduced TST unless we know we have a template");... | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rsi), %rax
cmpq $0x10, %rax
jae 0x125fcfa
movq 0x28(%rsi), %rax
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x12fddcc
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1261cd2
testb %al, %al
jne 0x125fcf2
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleType(clang::DependentSizedExtVectorType const*) | void CXXNameMangler::mangleType(const DependentSizedExtVectorType *T) {
Out << "Dv";
mangleExpression(T->getSizeExpr());
Out << '_';
mangleType(T->getElementType());
} | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq 0x18(%rdi), %rcx
movq 0x20(%rdi), %rax
subq %rax, %rcx
cmpq $0x1, %rcx
ja 0x125ff06
leaq 0x3d4eb9(%rip), %rsi # 0x1634db3
movl $0x2, %edx
callq 0x48022a
jmp 0x125ff10
movw $0x7644, (%rax) # imm = 0x7644
addq $0x2, 0x20... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleType(clang::FunctionNoProtoType const*) | void CXXNameMangler::mangleType(const FunctionNoProtoType *T) {
// Function types without prototypes can arise when mangling a function type
// within an overloadable function in C. We mangle these as the absence of any
// parameter types (not even an empty parameter list).
Out << 'F';
FunctionTypeDepthState... | pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq 0x20(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x126031b
leaq 0x1(%rax), %rcx
movq %rcx, 0x20(%rdi)
movb $0x46, (%rax)
jmp 0x1260325
movl $0x46, %esi
callq 0x4801b4
movl 0x2c(%rbx), %ebp
movl %ebp, %eax
orl $0x1, %eax
addl $0x2, %eax... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleType(clang::MemberPointerType const*) | void CXXNameMangler::mangleType(const MemberPointerType *T) {
Out << 'M';
mangleType(QualType(T->getClass(), 0));
QualType PointeeType = T->getPointeeType();
if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(PointeeType)) {
mangleType(FPT);
// Itanium C++ ABI 5.1.8:
//
// The typ... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq 0x20(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x12608a7
leaq 0x1(%rax), %rcx
movq %rcx, 0x20(%rdi)
movb $0x4d, (%rax)
jmp 0x12608b1
movl $0x4d, %esi
callq 0x4801b4
movq 0x28(%r14), %rsi
andq $-0x10, %rsi
movq %rbx, %rdi
callq 0x125c... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::isStdCharSpecialization(clang::ClassTemplateSpecializationDecl const*, llvm::StringRef, bool) | bool CXXNameMangler::isStdCharSpecialization(
const ClassTemplateSpecializationDecl *SD, llvm::StringRef Name,
bool HasAllocator) {
if (!SD->getIdentifier()->isStr(Name))
return false;
const TemplateArgumentList &TemplateArgs = SD->getTemplateArgs();
if (TemplateArgs.size() != (HasAllocator ? 3 : 2))... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movq %rsi, %rbx
movq 0x28(%rsi), %rsi
movq %rsi, %r8
andq $-0x8, %r8
xorl %eax, %eax
testb $0x7, %sil
cmovneq %rax, %r8
movq %rdi, %r14
movq 0x10(%r8), %rdi
movl (%rdi), %esi
cmpq %rcx, %rsi
jne 0x12620ac
testq %rcx, %rcx
je 0x126208b
addq $0x10, %r... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::CXXNameMangler::mangleTemplateArg(clang::TemplateArgument, bool) | void CXXNameMangler::mangleTemplateArg(TemplateArgument A, bool NeedExactType) {
// <template-arg> ::= <type> # type or template
// ::= X <expression> E # expression
// ::= <expr-primary> # simple expressions
// ::= J <template-arg>* E # argument... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x100(%rsp), %r14
movq %r14, %rdi
callq 0x12fc5f4
testb %al, %al
je 0x126763e
movq %r14, %rdi
callq 0x12fc5e6
testb %al, %al
je 0x1267665
movq (%rbx), %rax
movq 0x8(%rax), %rsi
leaq 0x18(%rsp), %r15
m... | /AST/ItaniumMangle.cpp |
llvm::StringRef* llvm::SmallVectorImpl<llvm::StringRef>::insert<llvm::StringRef const*, void>(llvm::StringRef*, llvm::StringRef const*, llvm::StringRef const*) | iterator insert(iterator I, ItTy From, ItTy To) {
// Convert iterator to elt# to avoid invalidating iterator when we reserve()
size_t InsertElt = I - this->begin();
if (I == this->end()) { // Important special case for empty vector.
append(From, To);
return this->begin()+InsertElt;
}
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r13
movq (%rdi), %rdi
movq %rsi, %r12
subq %rdi, %r12
movl 0x8(%r13), %eax
movl %eax, %r8d
movq %r8, %rdx
shlq $0x4, %rdx
addq %rdi, %rdx
cmpq %rsi, %rdx
je 0x126883e
movq %rcx, 0x8(%rsp)
movq %rcx, %rbp
subq ... | /llvm/ADT/SmallVector.h |
(anonymous namespace)::CXXNameMangler::mangleTypeConstraint(clang::ConceptDecl const*, llvm::ArrayRef<clang::TemplateArgument>) | void CXXNameMangler::mangleTypeConstraint(
const ConceptDecl *Concept, ArrayRef<TemplateArgument> Arguments) {
const DeclContext *DC = Context.getEffectiveDeclContext(Concept);
if (!Arguments.empty())
mangleTemplateName(Concept, Arguments);
else if (DC->isTranslationUnit() || isStdNamespace(DC))
mangl... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x125b88a
testq %r12, %r12
je 0x126951c
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1266e3e
movq %rax... | /AST/ItaniumMangle.cpp |
(anonymous namespace)::ItaniumMangleContextImpl::isInternalLinkageDecl(clang::NamedDecl const*) | bool ItaniumMangleContextImpl::isInternalLinkageDecl(const NamedDecl *ND) {
if (ND && ND->getFormalLinkage() == Linkage::Internal &&
!ND->isExternallyVisible() &&
getEffectiveDeclContext(ND)->isFileContext() &&
!ND->isInAnonymousNamespace())
return true;
return false;
} | pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x126a276
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x110e6c6
cmpb $0x2, %al
jne 0x126a276
movq %rbx, %rdi
callq 0x110e62e
addb $-0x4, %al
cmpb $0x3, %al
jb 0x126a276
movq %r14, %rdi
movq %rbx, %rsi
callq 0x125b88a
movzwl 0x8(%rax), %eax
andl $0x7f, %eax
... | /AST/ItaniumMangle.cpp |
clang::MangleContext::getAnonymousStructId(clang::NamedDecl const*, clang::FunctionDecl const*) | uint64_t getAnonymousStructId(const NamedDecl *D,
const FunctionDecl *FD = nullptr) {
auto FindResult = AnonStructIds.find(D);
if (FindResult != AnonStructIds.end())
return FindResult->second;
// If FunctionDecl is passed in, the anonymous structID will be per-function... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, 0x8(%rsp)
leaq 0x50(%rdi), %rbx
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x125b7fc
testb %al, %al
je 0x126a522
movq 0x20(%rsp), %rax
movl 0x60(%r15), %ecx
sh... | /clang/AST/Mangle.h |
(anonymous namespace)::CXXNameMangler::mangleModuleNamePrefix(llvm::StringRef, bool) | void CXXNameMangler::mangleModuleNamePrefix(StringRef Name, bool IsPartition) {
// <substitution> ::= S <seq-id> _
auto It = ModuleSubstitutions.find(Name);
if (It != ModuleSubstitutions.end()) {
Out << 'S';
mangleSeqID(It->second);
return;
}
// FIXME: Preserve hierarchy in module names rather t... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdi, %rbx
movq %rsp, %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
leaq 0x100(%rdi), %r14
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x126a93a
testb %al, %al
je 0x126a816
movq 0x10(%rsp), %r15
movl 0x... | /AST/ItaniumMangle.cpp |
clang::JSONNodeDumper::VisitNamespaceAliasDecl(clang::NamespaceAliasDecl const*) | void JSONNodeDumper::VisitNamespaceAliasDecl(const NamespaceAliasDecl *NAD) {
VisitNamedDecl(NAD);
JOS.attribute("aliasedNamespace",
createBareDeclRef(NAD->getAliasedNamespace()));
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movq %rdi, %r15
callq 0x12753fe
leaq 0x418(%r15), %r14
movq 0x58(%rbx), %rdx
movq %rsp, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x126fd9a
leaq 0x18(%rsp), %r15
movw $0x7, (%r15)
movups (%rbx), %xmm0
movups %xmm0, 0x8(%r15)
xorps %xmm0, %xmm0
movups %x... | /AST/JSONNodeDumper.cpp |
clang::JSONNodeDumper::VisitUsingEnumDecl(clang::UsingEnumDecl const*) | void JSONNodeDumper::VisitUsingEnumDecl(const UsingEnumDecl *UED) {
JOS.attribute("target", createBareDeclRef(UED->getEnumDecl()));
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r15
leaq 0x418(%rdi), %rbx
movq 0x40(%rsi), %rax
movq (%rax), %rax
andq $-0x10, %rax
movq (%rax), %rdi
callq 0x131f43c
movq %rsp, %r14
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x126fd9a
leaq 0x18(%rsp), %r15
movw $0x7, (%r15)
movups (%r14), %xmm... | /AST/JSONNodeDumper.cpp |
clang::JSONNodeDumper::VisitObjCMethodDecl(clang::ObjCMethodDecl const*) | void JSONNodeDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
VisitNamedDecl(D);
JOS.attribute("returnType", createQualType(D->getReturnType()));
JOS.attribute("instance", D->isInstanceMethod());
attributeOnlyIfTrue("variadic", D->isVariadic());
} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x12753fe
leaq 0x418(%rbx), %r15
movq 0x50(%r14), %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movl $0x1, %ecx
callq 0x126ea4e
movq %rsp, %r12
movw $0x7, (%r12)
movups (%r13), %xmm0
movups %xmm0, ... | /AST/JSONNodeDumper.cpp |
clang::JSONNodeDumper::VisitObjCTypeParamDecl(clang::ObjCTypeParamDecl const*) | void JSONNodeDumper::VisitObjCTypeParamDecl(const ObjCTypeParamDecl *D) {
VisitNamedDecl(D);
JOS.attribute("type", createQualType(D->getUnderlyingType()));
attributeOnlyIfTrue("bounded", D->hasExplicitBound());
switch (D->getVariance()) {
case ObjCTypeParamVariance::Invariant:
break;
case ObjCTypeParamV... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x12753fe
leaq 0x418(%r15), %rbx
movq 0x50(%r14), %rax
movq %rax, %rcx
andq $-0x8, %rcx
andl $0x4, %eax
movq (%rcx,%rax,2), %rdx
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movl $0x1, %ecx
callq 0x126... | /AST/JSONNodeDumper.cpp |
clang::JSONNodeDumper::VisitObjCPropertyImplDecl(clang::ObjCPropertyImplDecl const*) | void JSONNodeDumper::VisitObjCPropertyImplDecl(const ObjCPropertyImplDecl *D) {
VisitNamedDecl(D->getPropertyDecl());
JOS.attribute("implKind", D->getPropertyImplementation() ==
ObjCPropertyImplDecl::Synthesize
? "synthesize"
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq 0x30(%rsi), %rsi
callq 0x12753fe
leaq 0x418(%r14), %rbx
xorl %eax, %eax
cmpq $0x0, 0x38(%r15)
setne %al
leaq 0x3e4cbf(%rip), %rcx # 0x165cc62
leaq 0x3e4bff(%rip), %rsi # 0x165cba9
cmoveq %rcx, %... | /AST/JSONNodeDumper.cpp |
clang::JSONNodeDumper::VisitObjCSelectorExpr(clang::ObjCSelectorExpr const*) | void JSONNodeDumper::VisitObjCSelectorExpr(const ObjCSelectorExpr *OSE) {
std::string Str;
llvm::raw_string_ostream OS(Str);
OSE->getSelector().print(OS);
JOS.attribute("selector", Str);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x70(%rsp), %r15
movl $0x0, 0x8(%r15)
movb %al, 0x28(%r15)
movl $0x1, 0x2c(%r15)
xorps %xmm0, %xmm0
... | /AST/JSONNodeDumper.cpp |
clang::JSONNodeDumper::VisitInitListExpr(clang::InitListExpr const*) | static inline bool isPresent(const T &t) { return t != T(nullptr); } | movq 0x38(%rsi), %rdx
testb $0x2, %dl
sete %cl
andq $-0x4, %rdx
sete %sil
orb %cl, %sil
jne 0x127a29b
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rax
leaq 0x418(%rdi), %r14
movq %rsp, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x126fd9a
leaq 0x18(%rsp), %r15
movw $0x7, (%r15)
movups (%rbx), %xmm0
movu... | /llvm/Support/Casting.h |
clang::JSONNodeDumper::VisitLabelStmt(clang::LabelStmt const*) | void JSONNodeDumper::VisitLabelStmt(const LabelStmt *LS) {
JOS.attribute("name", LS->getName());
JOS.attribute("declId", createPointerRepresentation(LS->getDecl()));
attributeOnlyIfTrue("sideEntry", LS->isSideEntry());
} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x418(%rdi), %r15
movq %rsi, %rdi
callq 0x12c22b4
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x510834
leaq 0x598f04(%rip), %rsi # 0x1813f9f
movl $0x4, %edx
movq %r15, %rdi
callq 0x1545ef4
mov... | /AST/JSONNodeDumper.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.