name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
(anonymous namespace)::ExprEvaluatorBase<(anonymous namespace)::FixedPointExprEvaluator>::VisitCXXDefaultArgExpr(clang::CXXDefaultArgExpr const*)
bool VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *E) { TempVersionRAII RAII(*Info.CurrentCall); SourceLocExprScopeGuard Guard(E, Info.CurrentCall->CurSourceLocExprScope); return StmtVisitorTy::Visit(E->getExpr()); }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax movq 0x20(%rax), %r15 leaq 0x88(%r15), %rdi movl 0xa0(%r15), %esi incl %esi movl %esi, 0xa0(%r15) callq 0x497cb6 movq (%rbx), %rax movq 0x20(%rax), %r12 movq 0x40(%r12), %r13 testq %r13, %r13 jne 0x118e986 movq %r14...
/AST/ExprConstant.cpp
getBaseAlignment((anonymous namespace)::EvalInfo&, (anonymous namespace)::LValue const&)
static CharUnits getBaseAlignment(EvalInfo &Info, const LValue &Value) { if (const auto *VD = Value.Base.dyn_cast<const ValueDecl *>()) return Info.Ctx.getDeclAlign(VD); if (const auto *E = Value.Base.dyn_cast<const Expr *>()) return GetAlignOfExpr(Info, E, UETT_AlignOf); return GetAlignOfType(Info, Value...
pushq %rbx movq %rsi, %rax movq %rdi, %rbx movq (%rsi), %rsi movq %rsi, %rcx andq $0x3, %rcx setne %dl andq $-0x4, %rsi sete %dil orb %dl, %dil je 0x11a869f testq %rsi, %rsi sete %dl cmpl $0x1, %ecx setne %cl orb %dl, %cl je 0x11a86ab movq %rax, %rdi callq 0x107898a movq %rbx, %rdi movq %rax, %rsi movl $0x2, %edx popq ...
/AST/ExprConstant.cpp
(anonymous namespace)::ExprEvaluatorBase<(anonymous namespace)::PointerExprEvaluator>::VisitBinaryConditionalOperator(clang::BinaryConditionalOperator const*)
bool VisitBinaryConditionalOperator(const BinaryConditionalOperator *E) { // Evaluate and cache the common expression. We treat it as a temporary, // even though it's not quite the same thing. LValue CommonLV; if (!Evaluate(Info.CurrentCall->createTemporary( E->getOpaqueValue(), ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 leaq 0x170(%rsp), %r13 movaps %xmm0, -0x40(%r13) xorl %eax, %eax movq %rax, -0x30(%r13) movl $0xffffffff, -0x28(%r13) # imm = 0xFFFFFFFF movq %rax, -0x18(%r13) ...
/AST/ExprConstant.cpp
clang::UnresolvedLookupExpr::CreateEmpty(clang::ASTContext const&, unsigned int, bool, unsigned int)
UnresolvedLookupExpr *UnresolvedLookupExpr::CreateEmpty( const ASTContext &Context, unsigned NumResults, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs) { assert(NumTemplateArgs == 0 || HasTemplateKWAndArgsInfo); unsigned Size = totalSizeToAlloc<DeclAccessPair, ASTTemplateKWAndArgsInfo, ...
pushq %r15 pushq %r14 pushq %rbx movl %edx, %ebx movl %esi, %r14d shll $0x5, %ecx movl %edx, %eax shll $0x4, %eax leal (%rax,%r14,8), %eax leal (%rcx,%rax), %esi addl $0x40, %esi addq $0x850, %rdi # imm = 0x850 movl $0x3, %edx callq 0x465442 movq %rax, %r15 movq %rax, %rdi movl %r14d, %esi movl %ebx, %edx ca...
/AST/ExprCXX.cpp
clang::CXXMemberCallExpr::getMethodDecl() const
CXXMethodDecl *CXXMemberCallExpr::getMethodDecl() const { if (const auto *MemExpr = dyn_cast<MemberExpr>(getCallee()->IgnoreParens())) return cast<CXXMethodDecl>(MemExpr->getMemberDecl()); // FIXME: Will eventually need to cope with member pointers. // NOTE: Update makeTailCallIfSwiftAsync on fixing this. ...
pushq %rax movzbl 0x3(%rdi), %eax movq (%rdi,%rax), %rdi callq 0x115d3fc cmpb $0x2e, (%rax) jne 0x11b32f9 movq 0x18(%rax), %rax jmp 0x11b32fb xorl %eax, %eax popq %rcx retq nop
/AST/ExprCXX.cpp
clang::CXXMemberCallExpr::getRecordDecl() const
CXXRecordDecl *CXXMemberCallExpr::getRecordDecl() const { Expr* ThisArg = getImplicitObjectArgument(); if (!ThisArg) return nullptr; if (ThisArg->getType()->isAnyPointerType()) return ThisArg->getType()->getPointeeType()->getAsCXXRecordDecl(); return ThisArg->getType()->getAsCXXRecordDecl(); }
pushq %rax callq 0x11b32b2 testq %rax, %rax je 0x11b333a movq 0x8(%rax), %rax andq $-0x10, %rax movq (%rax), %rdi movq 0x8(%rdi), %rax andq $-0x10, %rax movq (%rax), %rax movb 0x10(%rax), %al andb $-0x9, %al cmpb $0x20, %al jne 0x11b3334 callq 0x131bf7e andq $-0x10, %rax movq (%rax), %rdi popq %rax jmp 0x131c27e xorl %...
/AST/ExprCXX.cpp
clang::CXXConstructExpr::CXXConstructExpr(clang::Stmt::StmtClass, clang::QualType, clang::SourceLocation, clang::CXXConstructorDecl*, bool, llvm::ArrayRef<clang::Expr*>, bool, bool, bool, bool, clang::CXXConstructionKind, clang::SourceRange)
CXXConstructExpr::CXXConstructExpr( StmtClass SC, QualType Ty, SourceLocation Loc, CXXConstructorDecl *Ctor, bool Elidable, ArrayRef<Expr *> Args, bool HadMultipleCandidates, bool ListInitialization, bool StdInitListInitialization, bool ZeroInitialization, CXXConstructionKind ConstructKind, SourceRa...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r9d, %r13d movq %rdi, %rbx movq 0x78(%rsp), %r10 movl 0x70(%rsp), %r15d movb 0x68(%rsp), %r11b movb 0x60(%rsp), %bpl movb 0x58(%rsp), %r12b movb 0x50(%rsp), %r9b leaq 0x40(%rsp), %r14 movb %sil, (%rdi) leaq 0xd8cd2e(%rip), %rax # 0x1f...
/AST/ExprCXX.cpp
clang::CXXUnresolvedConstructExpr::CreateEmpty(clang::ASTContext const&, unsigned int)
CXXUnresolvedConstructExpr * CXXUnresolvedConstructExpr::CreateEmpty(const ASTContext &Context, unsigned NumArgs) { void *Mem = Context.Allocate(totalSizeToAlloc<Expr *>(NumArgs)); return new (Mem) CXXUnresolvedConstructExpr(EmptyShell(), NumArgs); }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movl %esi, %eax leaq 0x20(,%rax,8), %rsi addq $0x850, %rdi # imm = 0x850 movl $0x3, %edx callq 0x465442 movq %rax, %r14 movb $0x5e, (%rax) leaq 0xd8c1d0(%rip), %rax # 0x1f41240 cmpb $0x1, (%rax) jne 0x11b507f movl $0x5e, %edi callq 0x12c0ac0 xorps %xmm0, %x...
/AST/ExprCXX.cpp
clang::ObjCArrayLiteral::CreateEmpty(clang::ASTContext const&, unsigned int)
ObjCArrayLiteral *ObjCArrayLiteral::CreateEmpty(const ASTContext &C, unsigned NumElements) { void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); return new (Mem) ObjCArrayLiteral(EmptyShell(), NumElements); }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movl %esi, %eax leaq 0x28(,%rax,8), %rsi addq $0x850, %rdi # imm = 0x850 movl $0x3, %edx callq 0x465442 movq %rax, %r14 movb $0x2a, (%rax) leaq 0xd8ac12(%rip), %rax # 0x1f41240 cmpb $0x1, (%rax) jne 0x11b663d movl $0x2a, %edi callq 0x12c0ac0 xorl %eax, %eax...
/AST/ExprObjC.cpp
clang::interp::Integral<16u, true>::toAPValue(clang::ASTContext const&) const
APValue toAPValue(const ASTContext &) const { return APValue(toAPSInt()); }
pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movzwl (%rsi), %eax leaq 0x8(%rsp), %r14 movl $0x10, 0x8(%r14) movq %rax, (%r14) movb $0x0, 0xc(%r14) movq %r14, %rsi callq 0x579aa6 cmpl $0x41, 0x8(%r14) jb 0x11bad18 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x11bad18 callq 0x431260 movq %rbx, %rax addq $0x18, %rs...
/AST/Interp/Integral.h
clang::interp::Integral<32u, true>& clang::interp::Pointer::deref<clang::interp::Integral<32u, true>>() const
T &deref() const { assert(isLive() && "Invalid pointer"); assert(isBlockPointer()); assert(asBlockPointer().Pointee); assert(isDereferencable()); assert(Offset + sizeof(T) <= asBlockPointer().Pointee->getDescriptor()->getAllocSize()); if (isArrayRoot()) return *reinterpret_cast...
pushq %rbx movq %rdi, %rbx cmpl $0x0, 0x28(%rdi) je 0x11badca movq (%rbx), %rcx movq 0x18(%rbx), %rax addq %rcx, %rax addq $0x28, %rax popq %rbx retq movq %rbx, %rdi callq 0x11fe16a movq (%rbx), %rcx cmpb $0x1, 0x33(%rax) jne 0x11badbd movl 0x20(%rbx), %eax cmpq %rax, %rcx jne 0x11badbd movq 0x18(%rbx), %rax addq %rcx,...
/AST/Interp/Pointer.h
bool clang::interp::Add<(clang::interp::PrimType)10, clang::interp::Boolean>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Add(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); const unsigned Bits = RHS.bitWidth() + 1; return AddSubMulHelper<T, T::add, std::plus>(S, OpPC, Bits, LHS, RHS); }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r14, %rdi callq 0x1250fae movq 0xb0(%rbx), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a andb $0x1, %bpl testb $0x1, (%rax) movzbl %bpl, %eax movl $0x1, %...
/AST/Interp/Interp.h
bool clang::interp::AllocN<(clang::interp::PrimType)1, clang::interp::Integral<8u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::PrimType, clang::Expr const*, bool)
inline bool AllocN(InterpState &S, CodePtr OpPC, PrimType T, const Expr *Source, bool IsNoThrow) { if (!CheckDynamicMemoryAllocation(S, OpPC)) return false; SizeT NumElements = S.Stk.pop<SizeT>(); if (!CheckArraySize(S, OpPC, &NumElements, primSize(T), IsNoThrow)) { if (!IsNoThrow) ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, %r15d movq %rcx, %r14 movl %edx, %ebp movq %rsi, %r12 movq %rdi, %rbx callq 0x123da38 testb %al, %al je 0x11bd3c6 movq %r14, 0x10(%rsp) movq 0xb0(%rbx), %r13 movl $0x8, %esi movq %r13, %rdi callq 0x1250f7a movb (%rax), %r14b m...
/AST/Interp/Interp.h
bool clang::interp::ArrayElemPtr<(clang::interp::PrimType)5, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
inline bool ArrayElemPtr(InterpState &S, CodePtr OpPC) { const T &Offset = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.peek<Pointer>(); if (!Ptr.isZero()) { if (!CheckArray(S, OpPC, Ptr)) return false; } if (!OffsetHelper<T, ArithOp::Add>(S, OpPC, Offset, Ptr)) return false; return NarrowPtr...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movl %ebp, 0x4(%rsp) movq 0xb0(%rbx), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, %r15...
/AST/Interp/Interp.h
bool clang::interp::ArrayElemPtrPop<(clang::interp::PrimType)3, clang::interp::Integral<16u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
inline bool ArrayElemPtrPop(InterpState &S, CodePtr OpPC) { const T &Offset = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!Ptr.isZero()) { if (!CheckArray(S, OpPC, Ptr)) return false; } if (!OffsetHelper<T, ArithOp::Add>(S, OpPC, Offset, Ptr)) return false; return NarrowP...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movw %bp, 0x6(%rsp) movq 0xb0(%rbx), %rsi leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x11...
/AST/Interp/Interp.h
bool clang::interp::BitAnd<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool BitAnd(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); unsigned Bits = RHS.bitWidth(); T Result; if (!T::bitAnd(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return false; }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r14, %rdi callq 0x1250fae movq 0xb0(%rbx), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a andb (%rax), %bpl movl $0x8, %esi movq %r14, %rdi callq 0x1250fae...
/AST/Interp/Interp.h
bool clang::interp::BitOr<(clang::interp::PrimType)5, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool BitOr(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); unsigned Bits = RHS.bitWidth(); T Result; if (!T::bitOr(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return false; }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movl (%rax), %ebp movl $0x8, %esi movq %r14, %rdi callq 0x1250fae movq 0xb0(%rbx), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a orl (%rax), %ebp movl $0x8, %esi movq %r14, %rdi callq 0x1250fae ...
/AST/Interp/Interp.h
bool clang::interp::BitOr<(clang::interp::PrimType)8, clang::interp::IntegralAP<false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool BitOr(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); unsigned Bits = RHS.bitWidth(); T Result; if (!T::bitOr(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return false; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x10, %esi movq %r14, %rdi callq 0x1250f7a movl 0x8(%rax), %ebp movl %ebp, 0x48(%rsp) movq (%rax), %r15 movq %r15, 0x40(%rsp) xorl %r13d, %r13d movl %r13d, 0x8(%rax) movl $0x10, %esi movq %r14,...
/AST/Interp/Interp.h
bool clang::interp::BitXor<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool BitXor(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); unsigned Bits = RHS.bitWidth(); T Result; if (!T::bitXor(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return false; }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r14, %rdi callq 0x1250fae movq 0xb0(%rbx), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a xorb (%rax), %bpl movl $0x8, %esi movq %r14, %rdi callq 0x1250fae...
/AST/Interp/Interp.h
bool clang::interp::BitXor<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool BitXor(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); unsigned Bits = RHS.bitWidth(); T Result; if (!T::bitXor(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return false; }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movl (%rax), %ebp movl $0x8, %esi movq %r14, %rdi callq 0x1250fae movq 0xb0(%rbx), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a xorl (%rax), %ebp movl $0x8, %esi movq %r14, %rdi callq 0x1250fae...
/AST/Interp/Interp.h
bool clang::interp::CMP3<(clang::interp::PrimType)2, clang::interp::Integral<16u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::ComparisonCategoryInfo const*)
bool CMP3(InterpState &S, CodePtr OpPC, const ComparisonCategoryInfo *CmpInfo) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); const Pointer &P = S.Stk.peek<Pointer>(); ComparisonCategoryResult CmpResult = LHS.compare(RHS); if (CmpResult == ComparisonCategoryResult::Unordered) { // This s...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %r12, %rdi callq 0x1250fae movq 0xb0(%r14), %r12 movl $0x8, %esi movq %r12, %r...
/AST/Interp/Interp.h
bool clang::interp::Cast<(clang::interp::PrimType)1, (clang::interp::PrimType)0>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Cast(InterpState &S, CodePtr OpPC) { using T = typename PrimConv<TIn>::T; using U = typename PrimConv<TOut>::T; S.Stk.push<U>(U::from(S.Stk.pop<T>())); return true; }
pushq %rbp pushq %rbx pushq %rax movq 0xb0(%rdi), %rbx movl $0x8, %esi movq %rbx, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %rbx, %rdi callq 0x1250fae movl $0x8, %esi movq %rbx, %rdi callq 0x1250efe movb %bpl, (%rax) movb $0x1, %al addq $0x8, %rsp popq %rbx popq %rbp retq
/AST/Interp/Interp.h
bool clang::interp::Cast<(clang::interp::PrimType)0, (clang::interp::PrimType)7>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Cast(InterpState &S, CodePtr OpPC) { using T = typename PrimConv<TIn>::T; using U = typename PrimConv<TOut>::T; S.Stk.push<U>(U::from(S.Stk.pop<T>())); return true; }
pushq %r14 pushq %rbx pushq %rax movq 0xb0(%rdi), %rbx movl $0x8, %esi movq %rbx, %rdi callq 0x1250f7a movsbq (%rax), %r14 movl $0x8, %esi movq %rbx, %rdi callq 0x1250fae movl $0x8, %esi movq %rbx, %rdi callq 0x1250efe movq %r14, (%rax) movb $0x1, %al addq $0x8, %rsp popq %rbx popq %r14 retq
/AST/Interp/Interp.h
bool clang::interp::Cast<(clang::interp::PrimType)2, (clang::interp::PrimType)7>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Cast(InterpState &S, CodePtr OpPC) { using T = typename PrimConv<TIn>::T; using U = typename PrimConv<TOut>::T; S.Stk.push<U>(U::from(S.Stk.pop<T>())); return true; }
pushq %r14 pushq %rbx pushq %rax movq 0xb0(%rdi), %rbx movl $0x8, %esi movq %rbx, %rdi callq 0x1250f7a movswq (%rax), %r14 movl $0x8, %esi movq %rbx, %rdi callq 0x1250fae movl $0x8, %esi movq %rbx, %rdi callq 0x1250efe movq %r14, (%rax) movb $0x1, %al addq $0x8, %rsp popq %rbx popq %r14 retq
/AST/Interp/Interp.h
bool clang::interp::Cast<(clang::interp::PrimType)6, (clang::interp::PrimType)6>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Cast(InterpState &S, CodePtr OpPC) { using T = typename PrimConv<TIn>::T; using U = typename PrimConv<TOut>::T; S.Stk.push<U>(U::from(S.Stk.pop<T>())); return true; }
pushq %r14 pushq %rbx pushq %rax movq 0xb0(%rdi), %rbx movl $0x8, %esi movq %rbx, %rdi callq 0x1250f7a movq (%rax), %r14 movl $0x8, %esi movq %rbx, %rdi callq 0x1250fae movl $0x8, %esi movq %rbx, %rdi callq 0x1250efe movq %r14, (%rax) movb $0x1, %al addq $0x8, %rsp popq %rbx popq %r14 retq
/AST/Interp/Interp.h
bool clang::interp::Cast<(clang::interp::PrimType)8, (clang::interp::PrimType)3>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Cast(InterpState &S, CodePtr OpPC) { using T = typename PrimConv<TIn>::T; using U = typename PrimConv<TOut>::T; S.Stk.push<U>(U::from(S.Stk.pop<T>())); return true; }
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq 0xb0(%rdi), %rbx movl $0x10, %esi movq %rbx, %rdi callq 0x1250f7a movl 0x8(%rax), %ecx movq %rsp, %r14 movl %ecx, 0x8(%r14) movq (%rax), %rcx movq %rcx, (%r14) movl $0x0, 0x8(%rax) movl $0x10, %esi movq %rbx, %rdi callq 0x1250fae movq %r14, %rdi callq 0x1205616 mov...
/AST/Interp/Interp.h
bool clang::interp::Cast<(clang::interp::PrimType)8, (clang::interp::PrimType)7>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Cast(InterpState &S, CodePtr OpPC) { using T = typename PrimConv<TIn>::T; using U = typename PrimConv<TOut>::T; S.Stk.push<U>(U::from(S.Stk.pop<T>())); return true; }
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq 0xb0(%rdi), %rbx movl $0x10, %esi movq %rbx, %rdi callq 0x1250f7a movl 0x8(%rax), %ecx movq %rsp, %r14 movl %ecx, 0x8(%r14) movq (%rax), %rcx movq %rcx, (%r14) movl $0x0, 0x8(%rax) movl $0x10, %esi movq %rbx, %rdi callq 0x1250fae movq %r14, %rdi callq 0x1203256 mov...
/AST/Interp/Interp.h
bool clang::interp::CastAP<(clang::interp::PrimType)9, clang::interp::IntegralAP<true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool CastAP(InterpState &S, CodePtr OpPC, uint32_t BitWidth) { S.Stk.push<IntegralAP<false>>( IntegralAP<false>::from(S.Stk.pop<T>(), BitWidth)); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movl %edx, %ebp movq 0xb0(%rdi), %rbx movl $0x10, %esi movq %rbx, %rdi callq 0x1250f7a movl 0x8(%rax), %ecx movq %rsp, %r14 movl %ecx, 0x8(%r14) movq (%rax), %rcx movq %rcx, (%r14) xorl %r12d, %r12d movl %r12d, 0x8(%rax) movl $0x10, %esi movq %rbx,...
/AST/Interp/Interp.h
bool clang::interp::CastIntegralFloating<(clang::interp::PrimType)1, clang::interp::Integral<8u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, llvm::fltSemantics const*, llvm::RoundingMode)
bool CastIntegralFloating(InterpState &S, CodePtr OpPC, const llvm::fltSemantics *Sem, llvm::RoundingMode RM) { const T &From = S.Stk.pop<T>(); APSInt FromAP = From.toAPSInt(); Floating Result; auto Status = Floating::fromIntegral(FromAP, *Sem, RM, Result); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %ecx, %ebp movq %rdx, %r15 movq %rsi, (%rsp) movq %rdi, %r14 movq 0xb0(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a movzbl (%rax), %ebx movl $0x8, %esi movq %r12, %rdi callq 0x1250fae leaq 0x18(%rsp), %r12 xorps %xmm0...
/AST/Interp/Interp.h
bool clang::interp::CastIntegralFloating<(clang::interp::PrimType)5, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, llvm::fltSemantics const*, llvm::RoundingMode)
bool CastIntegralFloating(InterpState &S, CodePtr OpPC, const llvm::fltSemantics *Sem, llvm::RoundingMode RM) { const T &From = S.Stk.pop<T>(); APSInt FromAP = From.toAPSInt(); Floating Result; auto Status = Floating::fromIntegral(FromAP, *Sem, RM, Result); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %ecx, %ebp movq %rdx, %r15 movq %rsi, (%rsp) movq %rdi, %r14 movq 0xb0(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a movl (%rax), %ebx movl $0x8, %esi movq %r12, %rdi callq 0x1250fae leaq 0x18(%rsp), %r12 xorps %xmm0, ...
/AST/Interp/Interp.h
bool clang::interp::CastPointerIntegral<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool CastPointerIntegral(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.pop<Pointer>(); if (Ptr.isDummy()) return false; const SourceInfo &E = S.Current->getSource(OpPC); S.CCEDiag(E, diag::note_constexpr_invalid_cast) << 2 << S.getLangOpts().CPlusPlus << S.Current->getRange(OpPC); S....
pushq %r15 pushq %r14 pushq %rbx subq $0x50, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %rsi leaq 0x10(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 cmpl $0x0, 0x28(%r15) je 0x11ca466 movq 0xc0(%rbx), %rdi movq %r14, %rsi callq 0x12509c2 leaq 0x8(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi movl $0x8a6, %edx ...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitCheckEnumValueBool(clang::EnumDecl const*, clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11cb352 pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movq %rdi, %r14 movq (%rdx), %rax movq %rax, 0x328(%rdi) movq 0x320(%rdi), %r15 movq 0x230(%rdi), %rdi movl $0x8, %esi callq 0x1250f7a movzbl (%rax), %eax movl $0x1, 0x10(%rsp) movq %...
/AST/Interp/EvalEmitter.h
bool clang::interp::CopyArray<(clang::interp::PrimType)1, clang::interp::Integral<8u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int, unsigned int, unsigned int)
inline bool CopyArray(InterpState &S, CodePtr OpPC, uint32_t SrcIndex, uint32_t DestIndex, uint32_t Size) { const auto &SrcPtr = S.Stk.pop<Pointer>(); const auto &DestPtr = S.Stk.peek<Pointer>(); for (uint32_t I = 0; I != Size; ++I) { const Pointer &SP = SrcPtr.atIndex(SrcIndex + I); if (!CheckLoad(S, O...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %r8d, %r14d movl %ecx, %ebx movl %edx, %ebp movq %rsi, 0x10(%rsp) movq %rdi, %r15 movq 0xb0(%rdi), %rsi leaq 0x18(%rsp), %rdi callq 0x11ba7a4 movq %r15, 0x8(%rsp) movq 0xb0(%r15), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, (%r...
/AST/Interp/Interp.h
bool clang::interp::DecPop<(clang::interp::PrimType)1, clang::interp::Integral<8u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool DecPop(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckLoad(S, OpPC, Ptr, AK_Decrement)) return false; return IncDecHelper<T, IncDecOp::Dec, PushVal::No>(S, OpPC, Ptr); }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %rsi leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movl $0x4, %ecx callq 0x123ce3b movl %eax, %ebx testb %al, %al je 0x11cd6c7 leaq 0x8(%rsp), %r14 movq %r...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitDecayPtrPtrFnPtr(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11cdd07 pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %rbx movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x230(%rdi), %rsi movq %rsp, %r14 movq %r14, %rdi callq 0x11ba7a4 movq 0x230(%rbx), %rbx movq %r14, %rdi callq 0x11fe42e movq %rax, %r15 movl $0x10,...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitDecayPtrMemberPtrPtr(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11cdfeb pushq %r14 pushq %rbx subq $0x78, %rsp movq %rdi, %rbx movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x230(%rdi), %rsi leaq 0x38(%rsp), %r14 movq %r14, %rdi callq 0x11fe336 movq 0x230(%rbx), %rdi xorps %xmm0, %xmm0 movq %rsp, %rbx movaps %xmm0, 0x10(%rbx) mova...
/AST/Interp/EvalEmitter.h
bool clang::interp::Div<(clang::interp::PrimType)2, clang::interp::Integral<16u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Div(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); if (!CheckDivRem(S, OpPC, LHS, RHS)) return false; const unsigned Bits = RHS.bitWidth() * 2; T Result; if (!T::div(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae leaq 0xe(%rsp), %r15 movw %bp, (%r15) movq 0xb0(%rbx), %r12 movl $0x8, %esi mo...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitEQSint8(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11d1e4a pushq %rax movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x320(%rdi), %rsi addq $0x180, %rdi # imm = 0x180 leaq 0x38630(%rip), %rdx # 0x120a46c leaq 0x7(%rsp), %rcx callq 0x120a3ce addq $0x8, %rsp retq nop
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitEQUint16(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11d1f0a pushq %rax movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x320(%rdi), %rsi addq $0x180, %rdi # imm = 0x180 leaq 0x38760(%rip), %rdx # 0x120a65c leaq 0x7(%rsp), %rcx callq 0x120a5bc addq $0x8, %rsp retq nop
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitEQSint32(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11d1f4a pushq %rax movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x320(%rdi), %rsi addq $0x180, %rdi # imm = 0x180 leaq 0x387c2(%rip), %rdx # 0x120a6fe leaq 0x7(%rsp), %rcx callq 0x120a662 addq $0x8, %rsp retq nop
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitFinishInit(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11d223d pushq %rbx movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x230(%rdi), %rdi movl $0x30, %esi callq 0x1250f7a cmpl $0x0, 0x28(%rax) jne 0x11d223c movq %rax, %rbx cmpq $0x0, 0x18(%rax) je 0x11d223c cmpl $0x0, 0x20(%rbx) je 0x11d223c movq %rbx, %rdi callq 0x125221...
/AST/Interp/EvalEmitter.h
bool clang::interp::GetField<(clang::interp::PrimType)13, clang::interp::FunctionPointer>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool GetField(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &Obj = S.Stk.peek<Pointer>(); if (!CheckNull(S, OpPC, Obj, CSK_Field)) return false; if (!CheckRange(S, OpPC, Obj, CSK_Field)) return false; const Pointer &Field = Obj.atField(I); if (!CheckLoad(S, OpPC, Field)) return false...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, %r15 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx movl $0x2, %ecx callq 0x123c4dc testb %al, %al je 0x11d3710 movq %rbx, %rdi movq ...
/AST/Interp/Interp.h
bool clang::interp::GetFieldPop<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool GetFieldPop(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &Obj = S.Stk.pop<Pointer>(); if (!CheckNull(S, OpPC, Obj, CSK_Field)) return false; if (!CheckRange(S, OpPC, Obj, CSK_Field)) return false; const Pointer &Field = Obj.atField(I); if (!CheckLoad(S, OpPC, Field)) return false...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %rsi leaq 0x38(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movl $0x2, %ecx callq 0x123c4dc testb %al, %al je 0x11d3f9f leaq 0x38(%rsp), %rdx movq ...
/AST/Interp/Interp.h
bool clang::interp::GetFieldPop<(clang::interp::PrimType)5, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool GetFieldPop(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &Obj = S.Stk.pop<Pointer>(); if (!CheckNull(S, OpPC, Obj, CSK_Field)) return false; if (!CheckRange(S, OpPC, Obj, CSK_Field)) return false; const Pointer &Field = Obj.atField(I); if (!CheckLoad(S, OpPC, Field)) return false...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %rsi leaq 0x38(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movl $0x2, %ecx callq 0x123c4dc testb %al, %al je 0x11d409e leaq 0x38(%rsp), %rdx movq ...
/AST/Interp/Interp.h
bool clang::interp::GetGlobalUnchecked<(clang::interp::PrimType)1, clang::interp::Integral<8u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool GetGlobalUnchecked(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &Ptr = S.P.getPtrGlobal(I); if (!Ptr.isInitialized()) return false; S.Stk.push<T>(Ptr.deref<T>()); return true; }
pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movq 0xa8(%rdi), %rsi movq %rsp, %rbx movq %rbx, %rdi callq 0x1254dd8 movq %rbx, %rdi callq 0x1252152 movl %eax, %ebx testb %al, %al je 0x11d5944 movq 0xb0(%r14), %r14 movq %rsp, %rdi callq 0x11bac0c movq %rax, %r15 movl $0x8, %esi movq %r14, %rdi callq ...
/AST/Interp/Interp.h
bool clang::interp::GetGlobalUnchecked<(clang::interp::PrimType)2, clang::interp::Integral<16u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool GetGlobalUnchecked(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &Ptr = S.P.getPtrGlobal(I); if (!Ptr.isInitialized()) return false; S.Stk.push<T>(Ptr.deref<T>()); return true; }
pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movq 0xa8(%rdi), %rsi movq %rsp, %rbx movq %rbx, %rdi callq 0x1254dd8 movq %rbx, %rdi callq 0x1252152 movl %eax, %ebx testb %al, %al je 0x11d59aa movq 0xb0(%r14), %r14 movq %rsp, %rdi callq 0x11bac98 movq %rax, %r15 movl $0x8, %esi movq %r14, %rdi callq ...
/AST/Interp/Interp.h
bool clang::interp::EvalEmitter::emitGetLocal<(clang::interp::PrimType)7>(unsigned int, clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11d68da pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x4(%rsp), %rax movl %esi, (%rax) addq $0x308, %rdi # imm = 0x308 movq %rax, %rsi callq 0x11fdf48 movq 0x8(%rax), %r14 movq 0x230(%rbx), %rdi movq 0x20(%r14), %rax movl 0x10(%rax), %ebx movl $0x8...
/AST/Interp/EvalEmitter.h
bool clang::interp::GetThisField<(clang::interp::PrimType)3, clang::interp::Integral<16u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool GetThisField(InterpState &S, CodePtr OpPC, uint32_t I) { if (S.checkingPotentialConstantExpression()) return false; const Pointer &This = S.Current->getThis(); if (!CheckThis(S, OpPC, This)) return false; const Pointer &Field = This.atField(I); if (!CheckLoad(S, OpPC, Field)) return false; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0x18(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) testb %al, %al jne 0x11d81af movq 0xc0(%rbx), %r15 addq $0x28, %r15 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x123d7dc testb %al,...
/AST/Interp/Interp.h
bool clang::interp::Init<(clang::interp::PrimType)11, clang::interp::Floating>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Init(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.peek<Pointer>(); if (!CheckInit(S, OpPC, Ptr)) { assert(false); return false; } Ptr.initialize(); new (&Ptr.deref<T>()) T(Value); return true; }
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %rbx movq %rdi, %r15 movq 0xb0(%rdi), %rsi movq %rsp, %rdi callq 0x11fe002 movq 0xb0(%r15), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, %r14 movq %r15, %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x123d48f movl %eax, %ebx testb %al, %al je 0x11da105 movq ...
/AST/Interp/Interp.h
bool clang::interp::InitBitField<(clang::interp::PrimType)3, clang::interp::Integral<16u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Record::Field const*)
bool InitBitField(InterpState &S, CodePtr OpPC, const Record::Field *F) { assert(F->isBitField()); const T &Value = S.Stk.pop<T>(); const Pointer &Field = S.Stk.peek<Pointer>().atField(F->Offset); Field.deref<T>() = Value.truncate(F->Decl->getBitWidthValue(S.getCtx())); Field.activate(); Field.initialize();...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdx, %r15 movq %rdi, %r14 movq 0xb0(%rdi), %rbx movl $0x8, %esi movq %rbx, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %rbx, %rdi callq 0x1250fae movq 0xb0(%r14), %rdi movl $0x30, %esi callq 0x1250f7a movl 0x8(%r15), %edx leaq 0x8(%rsp...
/AST/Interp/Interp.h
bool clang::interp::InitElem<(clang::interp::PrimType)13, clang::interp::FunctionPointer>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitElem(InterpState &S, CodePtr OpPC, uint32_t Idx) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.peek<Pointer>().atIndex(Idx); if (Ptr.isUnknownSizeArray()) return false; if (!CheckInit(S, OpPC, Ptr)) return false; Ptr.initialize(); new (&Ptr.deref<T>()) T(Value); return tru...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x10, %esi movq %r15, %rdi callq 0x1250f7a movq (%rax), %r12 movb 0x8(%rax), %r13b movl $0x10, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rdi movl $0...
/AST/Interp/Interp.h
bool clang::interp::InitElemPop<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitElemPop(InterpState &S, CodePtr OpPC, uint32_t Idx) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>().atIndex(Idx); if (Ptr.isUnknownSizeArray()) return false; if (!CheckInit(S, OpPC, Ptr)) return false; Ptr.initialize(); new (&Ptr.deref<T>()) T(Value); return t...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movb (%rax), %r13b movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rsi leaq 0x38(%rsp), %r15 movq %r1...
/AST/Interp/Interp.h
bool clang::interp::InitField<(clang::interp::PrimType)5, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitField(InterpState &S, CodePtr OpPC, uint32_t I) { const T &Value = S.Stk.pop<T>(); const Pointer &Field = S.Stk.peek<Pointer>().atField(I); Field.deref<T>() = Value; Field.activate(); Field.initialize(); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %ebx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rdi movl $0x30, %esi callq 0x1250f7a leaq 0x8(%rsp), %r14 movq %r14, %rdi...
/AST/Interp/Interp.h
bool clang::interp::InitField<(clang::interp::PrimType)12, clang::interp::Pointer>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitField(InterpState &S, CodePtr OpPC, uint32_t I) { const T &Value = S.Stk.pop<T>(); const Pointer &Field = S.Stk.peek<Pointer>().atField(I); Field.deref<T>() = Value; Field.activate(); Field.initialize(); return true; }
pushq %rbp pushq %r14 pushq %rbx subq $0x60, %rsp movl %edx, %ebp movq %rdi, %r14 movq 0xb0(%rdi), %rsi leaq 0x30(%rsp), %rbx movq %rbx, %rdi callq 0x11ba7a4 movq 0xb0(%r14), %rdi movl $0x30, %esi callq 0x1250f7a movq %rsp, %r14 movq %r14, %rdi movq %rax, %rsi movl %ebp, %edx callq 0x11ff076 movq %r14, %rdi callq 0x11b...
/AST/Interp/Interp.h
bool clang::interp::InitFieldActive<(clang::interp::PrimType)11, clang::interp::Floating>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitFieldActive(InterpState &S, CodePtr OpPC, uint32_t I) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); const Pointer &Field = Ptr.atField(I); Field.deref<T>() = Value; Field.activate(); Field.initialize(); return true; }
pushq %r14 pushq %rbx subq $0x88, %rsp movl %edx, %ebx movq %rdi, %r14 movq 0xb0(%rdi), %rsi leaq 0x68(%rsp), %rdi callq 0x11fe002 movq 0xb0(%r14), %rsi leaq 0x38(%rsp), %r14 movq %r14, %rdi callq 0x11ba7a4 addl (%r14), %ebx cmpl $0x1, 0x28(%r14) jne 0x11de010 movl %ebx, %eax addq 0x58(%rsp), %rax movq 0x50(%rsp), %rcx...
/AST/Interp/Interp.h
bool clang::interp::InitGlobal<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitGlobal(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &P = S.P.getGlobal(I); P.deref<T>() = S.Stk.pop<T>(); P.initialize(); return true; }
pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movq 0xa8(%rdi), %rax movl %edx, %ecx movq 0xe0(%rax), %rax movq (%rax,%rcx,8), %rsi movq %rsp, %rbx movq %rbx, %rdi callq 0x12514b6 movq 0xb0(%r14), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r14, %rdi c...
/AST/Interp/Interp.h
bool clang::interp::InitGlobal<(clang::interp::PrimType)6, clang::interp::Integral<64u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool InitGlobal(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &P = S.P.getGlobal(I); P.deref<T>() = S.Stk.pop<T>(); P.initialize(); return true; }
pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movq 0xa8(%rdi), %rax movl %edx, %ecx movq 0xe0(%rax), %rax movq (%rax,%rcx,8), %rsi movq %rsp, %rbx movq %rbx, %rdi callq 0x12514b6 movq 0xb0(%r14), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a movq (%rax), %r15 movl $0x8, %esi movq %r14, %rdi c...
/AST/Interp/Interp.h
bool clang::interp::InitPop<(clang::interp::PrimType)1, clang::interp::Integral<8u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool InitPop(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckInit(S, OpPC, Ptr)) return false; Ptr.initialize(); new (&Ptr.deref<T>()) T(Value); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rsi leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rdi ...
/AST/Interp/Interp.h
bool clang::interp::InitPop<(clang::interp::PrimType)9, clang::interp::IntegralAP<true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool InitPop(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckInit(S, OpPC, Ptr)) return false; Ptr.initialize(); new (&Ptr.deref<T>()) T(Value); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x10, %esi movq %r15, %rdi callq 0x1250f7a movl 0x8(%rax), %ebp movl %ebp, 0x8(%rsp) movq (%rax), %r12 movq %r12, (%rsp) movl $0x0, 0x8(%rax) movl $0x10, %esi movq %r15, %rdi callq 0x1250f...
/AST/Interp/Interp.h
bool clang::interp::InitThisBitField<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Record::Field const*, unsigned int)
bool InitThisBitField(InterpState &S, CodePtr OpPC, const Record::Field *F, uint32_t FieldOffset) { assert(F->isBitField()); if (S.checkingPotentialConstantExpression()) return false; const Pointer &This = S.Current->getThis(); if (!CheckThis(S, OpPC, This)) return false; const P...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movl %ecx, %ebp movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 movq 0x18(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) testb %al, %al jne 0x11e0eea movq 0xc0(%r14), %r12 addq $0x28, %r12 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x12...
/AST/Interp/Interp.h
bool clang::interp::InitThisBitField<(clang::interp::PrimType)9, clang::interp::IntegralAP<true>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::interp::Record::Field const*, unsigned int)
bool InitThisBitField(InterpState &S, CodePtr OpPC, const Record::Field *F, uint32_t FieldOffset) { assert(F->isBitField()); if (S.checkingPotentialConstantExpression()) return false; const Pointer &This = S.Current->getThis(); if (!CheckThis(S, OpPC, This)) return false; const P...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, %ebp movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 movq 0x18(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) testb %al, %al jne 0x11e13fd movq 0xc0(%r14), %r12 addq $0x28, %r12 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx...
/AST/Interp/Interp.h
bool clang::interp::Load<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Load(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.peek<Pointer>(); if (!CheckLoad(S, OpPC, Ptr)) return false; if (!Ptr.isBlockPointer()) return false; S.Stk.push<T>(Ptr.deref<T>()); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r15 movq %rdi, %rbx movq 0xb0(%rdi), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, %r14 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx xorl %ecx, %ecx callq 0x123ce3b cmpl $0x0, 0x28(%r14) sete %bpl andb %al, %bpl cmpb $0x1, %bpl jne 0x11e3841 movq ...
/AST/Interp/Interp.h
bool clang::interp::Load<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Load(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.peek<Pointer>(); if (!CheckLoad(S, OpPC, Ptr)) return false; if (!Ptr.isBlockPointer()) return false; S.Stk.push<T>(Ptr.deref<T>()); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r15 movq %rdi, %rbx movq 0xb0(%rdi), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, %r14 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx xorl %ecx, %ecx callq 0x123ce3b cmpl $0x0, 0x28(%r14) sete %bpl andb %al, %bpl cmpb $0x1, %bpl jne 0x11e3a15 movq ...
/AST/Interp/Interp.h
bool clang::interp::LoadPop<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool LoadPop(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckLoad(S, OpPC, Ptr)) return false; if (!Ptr.isBlockPointer()) 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 0xb0(%rdi), %rsi movq %rsp, %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx xorl %ecx, %ecx callq 0x123ce3b cmpl $0x0, 0x28(%r15) sete %bl andb %al, %bl cmpb $0x1, %bl jne 0x11e414a movq 0xb0(%r14...
/AST/Interp/Interp.h
bool clang::interp::LoadPop<(clang::interp::PrimType)2, clang::interp::Integral<16u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool LoadPop(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckLoad(S, OpPC, Ptr)) return false; if (!Ptr.isBlockPointer()) 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 0xb0(%rdi), %rsi movq %rsp, %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx xorl %ecx, %ecx callq 0x123ce3b cmpl $0x0, 0x28(%r15) sete %bl andb %al, %bl cmpb $0x1, %bl jne 0x11e423c movq 0xb0(%r14...
/AST/Interp/Interp.h
bool clang::interp::LoadPop<(clang::interp::PrimType)5, clang::interp::Integral<32u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool LoadPop(InterpState &S, CodePtr OpPC) { const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckLoad(S, OpPC, Ptr)) return false; if (!Ptr.isBlockPointer()) 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 0xb0(%rdi), %rsi movq %rsp, %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx xorl %ecx, %ecx callq 0x123ce3b cmpl $0x0, 0x28(%r15) sete %bl andb %al, %bl cmpb $0x1, %bl jne 0x11e43a6 movq 0xb0(%r14...
/AST/Interp/Interp.h
bool clang::interp::Mul<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Mul(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); const unsigned Bits = RHS.bitWidth() * 2; return AddSubMulHelper<T, T::mul, std::multiplies>(S, OpPC, Bits, LHS, RHS); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae leaq 0xc(%rsp), %r15 movl %ebp, (%r15) movq 0xb0(%r14), %r12 movl $0x8, %esi mov...
/AST/Interp/Interp.h
bool clang::interp::Mulc<(clang::interp::PrimType)7, clang::interp::Integral<64u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
inline bool Mulc(InterpState &S, CodePtr OpPC) { const Pointer &RHS = S.Stk.pop<Pointer>(); const Pointer &LHS = S.Stk.pop<Pointer>(); const Pointer &Result = S.Stk.peek<Pointer>(); if constexpr (std::is_same_v<T, Floating>) { APFloat A = LHS.atIndex(0).deref<Floating>().getAPFloat(); APFloat B = LHS.a...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdi, %rbx movq 0xb0(%rdi), %rsi leaq 0x78(%rsp), %r12 movq %r12, %rdi callq 0x11ba7a4 movq 0xb0(%rbx), %rsi leaq 0x48(%rsp), %r14 movq %r14, %rdi callq 0x11ba7a4 movq 0xb0(%rbx), %rdi movl $0x30, %esi callq 0x1250f7a movq %rax, 0x1...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitNEUint64(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11e7578 pushq %rax movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x320(%rdi), %rsi addq $0x180, %rdi # imm = 0x180 leaq 0x2848e(%rip), %rdx # 0x120f9f8 leaq 0x7(%rsp), %rcx callq 0x120a84a addq $0x8, %rsp retq nop
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitNEFloat(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11e7738 pushq %rax movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x320(%rdi), %rsi addq $0x180, %rdi # imm = 0x180 leaq 0x282f8(%rip), %rdx # 0x120fa22 leaq 0x7(%rsp), %rcx callq 0x120b564 addq $0x8, %rsp retq nop
/AST/Interp/EvalEmitter.h
bool clang::interp::Neg<(clang::interp::PrimType)3, clang::interp::Integral<16u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Neg(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); T Result; if (!T::neg(Value, &Result)) { S.Stk.push<T>(Result); return true; } assert(isIntegralType(Name) && "don't expect other types to fail at constexpr negation"); S.Stk.push<T>(Result); APSInt NegatedValue ...
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0xb0(%rdi), %r14 movl $0x8, %esi movq %r14, %rdi callq 0x1250f7a xorl %ebp, %ebp subw (%rax), %bp movl $0x8, %esi movq %r14, %rdi callq 0x1250fae movq 0xb0(%rbx), %rdi movl $0x8, %esi callq 0x1250efe movw %bp, (%rax) movb $0x1, %al popq %rbx popq %r14 popq %rbp retq...
/AST/Interp/Interp.h
bool clang::interp::Neg<(clang::interp::PrimType)6, clang::interp::Integral<64u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Neg(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); T Result; if (!T::neg(Value, &Result)) { S.Stk.push<T>(Result); return true; } assert(isIntegralType(Name) && "don't expect other types to fail at constexpr negation"); S.Stk.push<T>(Result); APSInt NegatedValue ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movq (%rax), %r12 movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq %r12, 0x18(%rsp) negq %r12 jno 0x11e832c movq 0xb0(%rbx), %rdi m...
/AST/Interp/Interp.h
bool clang::interp::OffsetOf<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, clang::OffsetOfExpr const*)
inline bool OffsetOf(InterpState &S, CodePtr OpPC, const OffsetOfExpr *E) { llvm::SmallVector<int64_t> ArrayIndices; for (size_t I = 0; I != E->getNumExpressions(); ++I) ArrayIndices.emplace_back(S.Stk.pop<int64_t>()); int64_t Result; if (!InterpretOffsetOf(S, OpPC, E, ArrayIndices, Result)) return fal...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdx, %r14 movq %rdi, %rbx leaq 0x28(%rsp), %r15 movq %r15, -0x10(%r15) movabsq $0x600000000, %rax # imm = 0x600000000 movq %rax, -0x8(%r15) cmpl $0x0, 0x24(%rdx) je 0x11e9426 movq %rsi, 0x10(%rsp) xorl %r15d, %r15d leaq 0x8(%r...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitPopSint16(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11e9ad5 pushq %rbx movq (%rsi), %rax movq %rax, 0x328(%rdi) movq 0x230(%rdi), %rbx movl $0x8, %esi movq %rbx, %rdi callq 0x1250f7a movl $0x8, %esi movq %rbx, %rdi callq 0x1250fae popq %rbx movb $0x1, %al retq
/AST/Interp/EvalEmitter.h
bool clang::interp::Rem<(clang::interp::PrimType)3, clang::interp::Integral<16u, false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Rem(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); if (!CheckDivRem(S, OpPC, LHS, RHS)) return false; const unsigned Bits = RHS.bitWidth() * 2; T Result; if (!T::rem(LHS, RHS, Bits, &Result)) { S.Stk.push<T>(Result); return true; } return...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae leaq 0xe(%rsp), %r15 movw %bp, (%r15) movq 0xb0(%rbx), %r12 movl $0x8, %esi mo...
/AST/Interp/Interp.h
bool clang::interp::SetField<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool SetField(InterpState &S, CodePtr OpPC, uint32_t I) { const T &Value = S.Stk.pop<T>(); const Pointer &Obj = S.Stk.peek<Pointer>(); if (!CheckNull(S, OpPC, Obj, CSK_Field)) return false; if (!CheckRange(S, OpPC, Obj, CSK_Field)) return false; const Pointer &Field = Obj.atField(I); if (!CheckStore...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movb (%rax), %r13b movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rdi movl $0x30, %esi callq 0x1250f...
/AST/Interp/Interp.h
bool clang::interp::EvalEmitter::emitSetLocal<(clang::interp::PrimType)1>(unsigned int, clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %eax cmpl 0x338(%rdi), %eax jne 0x11ec2f8 pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx leaq 0xc(%rsp), %rax movl %esi, (%rax) addq $0x308, %rdi # imm = 0x308 movq %rax, %rsi callq 0x11fdf48 movq 0x8(%rax), %r14 movq 0x230(%rbx), %rbx movl $0x8, %esi movq %rbx, %rdi call...
/AST/Interp/EvalEmitter.h
bool clang::interp::SetParam<(clang::interp::PrimType)10, clang::interp::Boolean>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool SetParam(InterpState &S, CodePtr OpPC, uint32_t I) { S.Current->setParam<T>(I, S.Stk.pop<T>()); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %ebx movq 0xc0(%rdi), %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r15, %rdi callq 0x1250fae leaq 0x7(%rsp), %rdx movb %bpl, (%rdx) movq %r14, %rdi movl %ebx, %esi callq 0x12101e0 movb...
/AST/Interp/Interp.h
bool clang::interp::SetThisField<(clang::interp::PrimType)12, clang::interp::Pointer>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int)
bool SetThisField(InterpState &S, CodePtr OpPC, uint32_t I) { if (S.checkingPotentialConstantExpression()) return false; const T &Value = S.Stk.pop<T>(); const Pointer &This = S.Current->getThis(); if (!CheckThis(S, OpPC, This)) return false; const Pointer &Field = This.atField(I); if (!CheckStore(S...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x60, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 movq 0x18(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) testb %al, %al je 0x11ed709 xorl %ebx, %ebx jmp 0x11ed786 movq 0xb0(%r14), %rsi leaq 0x30(%rsp), %rdi callq 0x11ba7a4 movq 0xc0(%r14), %r15 ad...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitShlSint8Sint64(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11ee5a6 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi call...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitShlSint8Uint64(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11ee65a pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi call...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitShlSint16Uint16(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11eef4d pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitShlSint32Uint16(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11efafb pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitShlUint64Sint8(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11f0bd4 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi call...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitShlUint64Sint32(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11f0d3b pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi call...
/AST/Interp/EvalEmitter.h
bool clang::interp::Shl<(clang::interp::PrimType)8, (clang::interp::PrimType)8>(clang::interp::InterpState&, clang::interp::CodePtr)
inline bool Shl(InterpState &S, CodePtr OpPC) { using LT = typename PrimConv<NameL>::T; using RT = typename PrimConv<NameR>::T; auto RHS = S.Stk.pop<RT>(); auto LHS = S.Stk.pop<LT>(); return DoShift<LT, RT, ShiftDir::Left>(S, OpPC, LHS, RHS); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r12 movl $0x10, %esi movq %r12, %rdi callq 0x1250f7a movl 0x8(%rax), %ecx leaq 0x8(%rsp), %r15 movl %ecx, 0x8(%r15) movq (%rax), %rcx movq %rcx, (%r15) xorl %ebp, %ebp movl %ebp, 0x8(%rax...
/AST/Interp/Interp.h
clang::interp::EvalEmitter::emitShrSint8Sint8(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11f386e pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a...
/AST/Interp/EvalEmitter.h
clang::interp::EvalEmitter::emitShrSint16Sint16(clang::interp::SourceInfo const&)
bool isActive() const { return CurrentLabel == ActiveLabel; }
movl 0x334(%rdi), %ecx movb $0x1, %al cmpl 0x338(%rdi), %ecx jne 0x11f4213 pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r15 movq (%rsi), %rax movq %rax, 0x328(%rdi) leaq 0x180(%rdi), %rbx movq 0x320(%rdi), %r14 movq 0x230(%rdi), %r12 movl $0x8, %esi movq %r12, %rdi callq 0x1250f7a...
/AST/Interp/EvalEmitter.h
bool clang::interp::Shr<(clang::interp::PrimType)5, (clang::interp::PrimType)5>(clang::interp::InterpState&, clang::interp::CodePtr)
inline bool Shr(InterpState &S, CodePtr OpPC) { using LT = typename PrimConv<NameL>::T; using RT = typename PrimConv<NameR>::T; auto RHS = S.Stk.pop<RT>(); auto LHS = S.Stk.pop<LT>(); return DoShift<LT, RT, ShiftDir::Right>(S, OpPC, LHS, RHS); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movl %ebp, 0x8(%rsp) movq 0xb0(%rbx), %r15 movl $0x8, %esi movq %r15, %rdi callq...
/AST/Interp/Interp.h
bool clang::interp::Shr<(clang::interp::PrimType)7, (clang::interp::PrimType)7>(clang::interp::InterpState&, clang::interp::CodePtr)
inline bool Shr(InterpState &S, CodePtr OpPC) { using LT = typename PrimConv<NameL>::T; using RT = typename PrimConv<NameR>::T; auto RHS = S.Stk.pop<RT>(); auto LHS = S.Stk.pop<LT>(); return DoShift<LT, RT, ShiftDir::Right>(S, OpPC, LHS, RHS); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movq (%rax), %r12 movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq %r12, 0x8(%rsp) movq 0xb0(%rbx), %r15 movl $0x8, %esi movq %r15,...
/AST/Interp/Interp.h
bool clang::interp::StoreBitFieldPop<(clang::interp::PrimType)2, clang::interp::Integral<16u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool StoreBitFieldPop(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckStore(S, OpPC, Ptr)) return false; if (Ptr.canBeInitialized()) Ptr.initialize(); if (const auto *FD = Ptr.getField()) Ptr.deref<T>() = Value.truncate(FD->getB...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rsi leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rd...
/AST/Interp/Interp.h
bool clang::interp::StoreBitFieldPop<(clang::interp::PrimType)10, clang::interp::Boolean>(clang::interp::InterpState&, clang::interp::CodePtr)
bool StoreBitFieldPop(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckStore(S, OpPC, Ptr)) return false; if (Ptr.canBeInitialized()) Ptr.initialize(); if (const auto *FD = Ptr.getField()) Ptr.deref<T>() = Value.truncate(FD->getB...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movb (%rax), %r12b movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%rbx), %rsi movq %rsp, %r15 movq %r15, %rdi callq 0x11ba7a4 movq %rbx...
/AST/Interp/Interp.h
bool clang::interp::StorePop<(clang::interp::PrimType)2, clang::interp::Integral<16u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool StorePop(InterpState &S, CodePtr OpPC) { const T &Value = S.Stk.pop<T>(); const Pointer &Ptr = S.Stk.pop<Pointer>(); if (!CheckStore(S, OpPC, Ptr)) return false; if (Ptr.canBeInitialized()) Ptr.initialize(); Ptr.deref<T>() = Value; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movzwl (%rax), %ebp movl $0x8, %esi movq %r15, %rdi callq 0x1250fae movq 0xb0(%r14), %rsi leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x11ba7a4 movq %r14, %rd...
/AST/Interp/Interp.h
bool clang::interp::Sub<(clang::interp::PrimType)0, clang::interp::Integral<8u, true>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Sub(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); const unsigned Bits = RHS.bitWidth() + 1; return AddSubMulHelper<T, T::sub, std::minus>(S, OpPC, Bits, LHS, RHS); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0xb0(%rdi), %r15 movl $0x8, %esi movq %r15, %rdi callq 0x1250f7a movb (%rax), %bpl movl $0x8, %esi movq %r15, %rdi callq 0x1250fae leaq 0xf(%rsp), %r15 movb %bpl, (%r15) movq 0xb0(%r14), %r12 movl $0x8, %esi mov...
/AST/Interp/Interp.h
bool clang::interp::Sub<(clang::interp::PrimType)8, clang::interp::IntegralAP<false>>(clang::interp::InterpState&, clang::interp::CodePtr)
bool Sub(InterpState &S, CodePtr OpPC) { const T &RHS = S.Stk.pop<T>(); const T &LHS = S.Stk.pop<T>(); const unsigned Bits = RHS.bitWidth() + 1; return AddSubMulHelper<T, T::sub, std::minus>(S, OpPC, Bits, LHS, RHS); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, (%rsp) movq %rdi, %r14 movq 0xb0(%rdi), %r12 movl $0x10, %esi movq %r12, %rdi callq 0x1250f7a movl 0x8(%rax), %ebp leaq 0x8(%rsp), %r15 movl %ebp, 0x8(%r15) movq (%rax), %rcx movq %rcx, (%r15) xorl %ebx, %ebx movl %ebx, 0x8(%r...
/AST/Interp/Interp.h
clang::interp::Pointer::isRoot() const
bool isBlockPointer() const { return StorageKind == Storage::Block; }
movl 0x28(%rdi), %edx testl %edx, %edx je 0x11fdf05 movq 0x20(%rdi), %rcx movq (%rdi), %rax orq %rcx, %rax sete %sil movb $0x1, %al cmpl $0x1, %edx je 0x11fdf25 testb %sil, %sil jne 0x11fdf25 movq 0x18(%rdi), %rax jmp 0x11fdf11 movq 0x18(%rdi), %rax testq %rax, %rax je 0x11fdf23 movl 0x20(%rdi), %ecx movq 0x20(%rax), %...
/AST/Interp/Pointer.h
clang::interp::Pointer::atIndex(unsigned long) const
[[nodiscard]] Pointer atIndex(uint64_t Idx) const { if (isIntegralPointer()) return Pointer(asIntPointer().Value, asIntPointer().Desc, Idx); if (asBlockPointer().Base == RootPtrMark) return Pointer(asBlockPointer().Pointee, RootPtrMark, getDeclDesc()->getSize()); uint64_t O...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx cmpl $0x1, 0x28(%rsi) jne 0x11fe101 movups 0x18(%r14), %xmm0 movq %r15, (%rbx) xorps %xmm1, %xmm1 movups %xmm1, 0x8(%rbx) movl $0x1, 0x28(%rbx) movups %xmm0, 0x18(%rbx) jmp 0x11fe15b cmpl $-0x1, 0x20(%r14) je 0x11fe14...
/AST/Interp/Pointer.h
clang::interp::MemberPointer::atInstanceBase(unsigned int) const
MemberPointer atInstanceBase(unsigned Offset) const { if (Base.isZero()) return MemberPointer(Base, Dcl, Offset); return MemberPointer(this->Base, Dcl, Offset + PtrOffset); }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx cmpl $0x0, 0x28(%rsi) je 0x11ff0f1 movq (%r14), %rax orq 0x20(%r14), %rax jne 0x11ff0f8 leaq 0x38(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x125153c jmp 0x11ff10c cmpq $0x0, 0x18(%r14) je 0x11ff0df leaq...
/AST/Interp/MemberPointer.h
long clang::interp::IntegralAP<false>::truncateCast<long, false>(llvm::APInt const&)
static T truncateCast(const APInt &V) { constexpr unsigned BitSize = sizeof(T) * 8; if (BitSize >= V.getBitWidth()) { APInt Extended; if constexpr (InputSigned) Extended = V.sext(BitSize); else Extended = V.zext(BitSize); return std::is_signed_v<T> ? Extended.getSExtValue...
pushq %rbx subq $0x10, %rsp movq %rdi, %rsi cmpl $0x40, 0x8(%rdi) ja 0x1203310 movq %rsp, %rbx movq %rbx, %rdi movl $0x40, %edx callq 0x4943ee movq (%rbx), %rdi movl 0x8(%rbx), %eax cmpq $0x40, %rax ja 0x1203340 movl %eax, %ecx negb %cl shlq %cl, %rdi sarq %cl, %rdi testq %rax, %rax cmoveq %rax, %rdi movq %rdi, %rbx jm...
/AST/Interp/IntegralAP.h
clang::interp::IntegralAP<true> clang::interp::IntegralAP<true>::from<unsigned int>(unsigned int, unsigned int)
static IntegralAP from(T Value, unsigned NumBits = 0) { assert(NumBits > 0); APInt Copy = APInt(NumBits, static_cast<uint64_t>(Value), Signed); return IntegralAP<Signed>(Copy); }
pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movl %esi, %eax leaq 0x18(%rsp), %r14 movq %r14, %rdi movl %edx, %esi movq %rax, %rdx movl $0x1, %ecx callq 0x466700 movl 0x8(%r14), %ecx movl %ecx, 0x10(%rsp) cmpl $0x40, %ecx ja 0x1204c99 movq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) movl %ecx, 0x8(%rbx) jmp 0x1204c...
/AST/Interp/IntegralAP.h