Lines Matching defs:literal

465   void RegisterLiteralReference(RawLiteral* literal) {
466 if (literal->IsManuallyPlaced()) return;
467 RegisterForwardReference(literal);
508 void Place(RawLiteral* literal) {
510 VIXL_ASSERT(literal->IsManuallyPlaced());
511 // Check if we need to emit the pools. Take the alignment of the literal
514 int alignment = literal->GetMaxAlignment();
516 int total_size = AlignUp(cursor, alignment) - cursor + literal->GetSize();
517 if (literal->Needs16BitPadding(cursor)) total_size += 2;
523 pool_manager_.Bind(this, literal, GetCursorOffset());
524 literal->EmitPoolObject(this);
630 // Adr with a literal already constructed. Add the literal to the pool if it
632 void Adr(Condition cond, Register rd, RawLiteral* literal) {
638 if (!literal->IsBound()) {
640 bool can_encode = adr_info(cond, Best, rd, literal, &info);
642 CheckEmitPoolForInstruction(info, literal, &cond);
652 adr(cond, Best, rd, literal);
653 RegisterLiteralReference(literal);
655 void Adr(Register rd, RawLiteral* literal) { Adr(al, rd, literal); }
657 // Loads with literals already constructed. Add the literal to the pool
659 void Ldr(Condition cond, Register rt, RawLiteral* literal) {
665 if (!literal->IsBound()) {
667 bool can_encode = ldr_info(cond, Best, rt, literal, &info);
669 CheckEmitPoolForInstruction(info, literal, &cond);
679 ldr(cond, rt, literal);
680 RegisterLiteralReference(literal);
682 void Ldr(Register rt, RawLiteral* literal) { Ldr(al, rt, literal); }
684 void Ldrb(Condition cond, Register rt, RawLiteral* literal) {
690 if (!literal->IsBound()) {
692 bool can_encode = ldrb_info(cond, rt, literal, &info);
694 CheckEmitPoolForInstruction(info, literal, &cond);
704 ldrb(cond, rt, literal);
705 RegisterLiteralReference(literal);
707 void Ldrb(Register rt, RawLiteral* literal) { Ldrb(al, rt, literal); }
709 void Ldrd(Condition cond, Register rt, Register rt2, RawLiteral* literal) {
716 if (!literal->IsBound()) {
718 bool can_encode = ldrd_info(cond, rt, rt2, literal, &info);
720 CheckEmitPoolForInstruction(info, literal, &cond);
730 ldrd(cond, rt, rt2, literal);
731 RegisterLiteralReference(literal);
733 void Ldrd(Register rt, Register rt2, RawLiteral* literal) {
734 Ldrd(al, rt, rt2, literal);
737 void Ldrh(Condition cond, Register rt, RawLiteral* literal) {
743 if (!literal->IsBound()) {
745 bool can_encode = ldrh_info(cond, rt, literal, &info);
747 CheckEmitPoolForInstruction(info, literal, &cond);
757 ldrh(cond, rt, literal);
758 RegisterLiteralReference(literal);
760 void Ldrh(Register rt, RawLiteral* literal) { Ldrh(al, rt, literal); }
762 void Ldrsb(Condition cond, Register rt, RawLiteral* literal) {
768 if (!literal->IsBound()) {
770 bool can_encode = ldrsb_info(cond, rt, literal, &info);
772 CheckEmitPoolForInstruction(info, literal, &cond);
782 ldrsb(cond, rt, literal);
783 RegisterLiteralReference(literal);
785 void Ldrsb(Register rt, RawLiteral* literal) { Ldrsb(al, rt, literal); }
787 void Ldrsh(Condition cond, Register rt, RawLiteral* literal) {
793 if (!literal->IsBound()) {
795 bool can_encode = ldrsh_info(cond, rt, literal, &info);
797 CheckEmitPoolForInstruction(info, literal, &cond);
807 ldrsh(cond, rt, literal);
808 RegisterLiteralReference(literal);
810 void Ldrsh(Register rt, RawLiteral* literal) { Ldrsh(al, rt, literal); }
812 void Vldr(Condition cond, DataType dt, DRegister rd, RawLiteral* literal) {
818 if (!literal->IsBound()) {
820 bool can_encode = vldr_info(cond, dt, rd, literal, &info);
822 CheckEmitPoolForInstruction(info, literal, &cond);
832 vldr(cond, dt, rd, literal);
833 RegisterLiteralReference(literal);
835 void Vldr(DataType dt, DRegister rd, RawLiteral* literal) {
836 Vldr(al, dt, rd, literal);
838 void Vldr(Condition cond, DRegister rd, RawLiteral* literal) {
839 Vldr(cond, Untyped64, rd, literal);
841 void Vldr(DRegister rd, RawLiteral* literal) {
842 Vldr(al, Untyped64, rd, literal);
845 void Vldr(Condition cond, DataType dt, SRegister rd, RawLiteral* literal) {
851 if (!literal->IsBound()) {
853 bool can_encode = vldr_info(cond, dt, rd, literal, &info);
855 CheckEmitPoolForInstruction(info, literal, &cond);
865 vldr(cond, dt, rd, literal);
866 RegisterLiteralReference(literal);
868 void Vldr(DataType dt, SRegister rd, RawLiteral* literal) {
869 Vldr(al, dt, rd, literal);
871 void Vldr(Condition cond, SRegister rd, RawLiteral* literal) {
872 Vldr(cond, Untyped32, rd, literal);
874 void Vldr(SRegister rd, RawLiteral* literal) {
875 Vldr(al, Untyped32, rd, literal);
884 RawLiteral* literal =
887 RawLiteral* literal = allocator_.New<Literal<uint32_t>>(
890 Ldr(cond, rt, literal);
904 RawLiteral* literal =
907 RawLiteral* literal = allocator_.New<Literal<uint64_t>>(
910 Ldrd(cond, rt, rt2, literal);
922 RawLiteral* literal =
925 RawLiteral* literal = allocator_.New<Literal<float>>(
928 Vldr(cond, rd, literal);
937 RawLiteral* literal =
940 RawLiteral* literal = allocator_.New<Literal<double>>(
943 Vldr(cond, rd, literal);