HomeSort by relevance Sort by last modified time
    Searched refs:Literal (Results 1 - 25 of 214) sorted by null

1 2 3 4 5 6 7 8 9

  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p6.cpp 16 struct Literal {
17 constexpr Literal() {}
38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}} expected-note {{non-literal type 'const NonLiteral' cannot be used in a constant expression}}
51 template<typename T> struct T1 : virtual Literal { // expected-note {{here}}
60 constexpr T2<Literal> g2() { return {}; }
62 template<typename T> class T3 : public T { // expected-note {{class with virtual base class is not a literal type}}
66 constexpr T3<Literal> g3() { return {}; } // ok
67 constexpr T3<VirtBase> g4() { return {}; } // expected-error {{not a literal type}}
p4.cpp 16 struct Literal {
17 constexpr Literal() {}
18 explicit Literal(int); // expected-note 2 {{here}}
23 // shall be a literal type.
26 constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
27 constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
31 constexpr S(Literal) = delete;
194 Literal l;
195 Literal m;
196 Literal n[3]
    [all...]
p3.cpp 16 struct Literal {
17 constexpr Literal() {}
41 // - its return type shall be a literal type;
42 constexpr NonLiteral NonLiteralReturn() const { return {}; } // expected-error {{constexpr function's return type 'NonLiteral' is not a literal type}}
45 // expected-error@-2 {{constexpr function's return type 'void' is not a literal type}}
51 // - each of its parameter types shall be a literal type;
52 constexpr int NonLiteralParam(NonLiteral) const { return 0; } // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}}
62 // don't have a literal return type. Defaulted assignment operators can't be
138 // - a definition of a variable of non-literal type
139 NonLiteral nl; // expected-error {{variable of non-literal type 'NonLiteral' cannot be defined in a constexpr function}
    [all...]
  /external/vixl/examples/aarch64/
literal.cc 38 Literal<int64_t> automatically_placed_literal(111, masm.GetLiteralPool());
39 Literal<int64_t> manually_placed_literal(222);
  /art/compiler/optimizing/
code_generator_mips64.h 551 Literal* DeduplicateBootImageStringLiteral(const DexFile& dex_file,
553 Literal* DeduplicateBootImageTypeLiteral(const DexFile& dex_file, dex::TypeIndex type_index);
554 Literal* DeduplicateBootImageAddressLiteral(uint64_t address);
560 const Literal* literal,
562 Literal* DeduplicateJitStringLiteral(const DexFile& dex_file,
565 Literal* DeduplicateJitClassLiteral(const DexFile& dex_file,
570 using Uint32ToLiteralMap = ArenaSafeMap<uint32_t, Literal*>;
571 using Uint64ToLiteralMap = ArenaSafeMap<uint64_t, Literal*>;
572 using MethodToLiteralMap = ArenaSafeMap<MethodReference, Literal*, MethodReferenceComparator>
    [all...]
code_generator_arm.h 491 Literal* DeduplicateBootImageStringLiteral(const DexFile& dex_file,
493 Literal* DeduplicateBootImageTypeLiteral(const DexFile& dex_file, dex::TypeIndex type_index);
494 Literal* DeduplicateBootImageAddressLiteral(uint32_t address);
495 Literal* DeduplicateJitStringLiteral(const DexFile& dex_file,
498 Literal* DeduplicateJitClassLiteral(const DexFile& dex_file,
610 using Uint32ToLiteralMap = ArenaSafeMap<uint32_t, Literal*>;
611 using MethodToLiteralMap = ArenaSafeMap<MethodReference, Literal*, MethodReferenceComparator>;
613 Literal*,
616 Literal*,
619 Literal* DeduplicateUint32Literal(uint32_t value, Uint32ToLiteralMap* map)
    [all...]
code_generator_mips.h 589 Literal* DeduplicateBootImageStringLiteral(const DexFile& dex_file,
591 Literal* DeduplicateBootImageTypeLiteral(const DexFile& dex_file, dex::TypeIndex type_index);
592 Literal* DeduplicateBootImageAddressLiteral(uint32_t address);
624 using Uint32ToLiteralMap = ArenaSafeMap<uint32_t, Literal*>;
625 using MethodToLiteralMap = ArenaSafeMap<MethodReference, Literal*, MethodReferenceComparator>;
627 Literal*,
630 Literal*,
633 Literal* DeduplicateUint32Literal(uint32_t value, Uint32ToLiteralMap* map);
634 Literal* DeduplicateMethodLiteral(MethodReference target_method, MethodToLiteralMap* map);
code_generator_arm64.h 46 // These constants are used as an approximate margin when emission of veneer and literal pools
588 vixl::aarch64::Literal<uint32_t>* DeduplicateBootImageStringLiteral(
591 vixl::aarch64::Literal<uint32_t>* DeduplicateBootImageTypeLiteral(const DexFile& dex_file,
593 vixl::aarch64::Literal<uint32_t>* DeduplicateBootImageAddressLiteral(uint64_t address);
594 vixl::aarch64::Literal<uint32_t>* DeduplicateJitStringLiteral(const DexFile& dex_file,
597 vixl::aarch64::Literal<uint32_t>* DeduplicateJitClassLiteral(const DexFile& dex_file,
715 using Uint64ToLiteralMap = ArenaSafeMap<uint64_t, vixl::aarch64::Literal<uint64_t>*>;
716 using Uint32ToLiteralMap = ArenaSafeMap<uint32_t, vixl::aarch64::Literal<uint32_t>*>;
718 vixl::aarch64::Literal<uint64_t>*,
721 vixl::aarch64::Literal<uint32_t>*
    [all...]
  /build/kati/
expr.cc 53 class Literal : public Value {
55 explicit Literal(StringPiece s)
363 Literal* lit = static_cast<Literal*>(vname);
382 Literal* lit = static_cast<Literal*>(vname);
413 v->AddValue(new Literal(":"));
460 r->AddValue(new Literal(s.substr(b, i-b)));
475 r->AddValue(new Literal(s.substr(b, i-b)));
478 r->AddValue(new Literal(StringPiece("$")))
    [all...]
  /external/clang/lib/Lex/
PPExpressions.cpp 268 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), PP);
269 if (Literal.hadError)
272 if (Literal.isFloatingLiteral() || Literal.isImaginary) {
276 assert(Literal.isIntegerLiteral() && "Unknown ppnumber");
279 if (Literal.hasUDSuffix())
283 if (!PP.getLangOpts().C99 && Literal.isLongLong) {
292 // Parse the integer literal into Result.
293 if (Literal.GetIntegerValue(Result.Val)) {
294 // Overflow parsing integer literal
    [all...]
Preprocessor.cpp 475 // If this is a raw identifier or a literal token, set the pointer data.
820 // We need at least one string literal.
827 // Lex string literal tokens, optionally with macro expansion.
842 StringLiteralParser Literal(StrToks, *this);
843 assert(Literal.isAscii() && "Didn't allow wide strings in");
845 if (Literal.hadError)
848 if (Literal.Pascal) {
854 String = Literal.GetString();
865 NumericLiteralParser Literal(Spelling, Tok.getLocation(), *this);
866 if (Literal.hadError || !Literal.isIntegerLiteral() || Literal.hasUDSuffix()
    [all...]
  /external/eigen/Eigen/src/Core/
NumTraits.h 64 * \li A typedef \c Literal giving the type to use for numeric literals such as "2" or "0.5". For instance, for \c std::complex<U>, Literal is defined as \c U.
107 typedef T Literal;
176 typedef typename NumTraits<_Real>::Literal Literal;
202 typedef typename NumTraits<Scalar>::Literal Literal;
  /toolchain/binutils/binutils-2.25/gas/testsuite/gas/aarch64/
litpool.d 2 #name: AArch64 Bignums in Literal Pool (PR 16688)
  /external/clang/lib/Sema/
SemaStmtAsm.cpp 155 // The parser verifies that there is a string literal here.
168 StringLiteral *Literal = Constraints[i];
169 assert(Literal->isAscii());
175 TargetInfo::ConstraintInfo Info(Literal->getString(), OutputName);
177 return StmtError(Diag(Literal->getLocStart(),
237 if (!Context.getTargetInfo().validateOutputSize(Literal->getString(),
247 StringLiteral *Literal = Constraints[i];
248 assert(Literal->isAscii());
254 TargetInfo::ConstraintInfo Info(Literal->getString(), InputName);
257 return StmtError(Diag(Literal->getLocStart()
    [all...]
  /external/mesa3d/src/gallium/tools/trace/
parse.py 259 return Literal(None)
265 return Literal(value)
271 return Literal(value)
277 return Literal(value)
283 return Literal(value)
295 return Literal(value)
301 return Literal(value)
  /art/compiler/utils/arm/
assembler_arm_vixl.h 139 // Use literal for generating double constant if it doesn't fit VMOV encoding.
229 vixl::aarch32::Literal<T>* CreateLiteralDestroyedWithPool(T value) {
230 vixl::aarch32::Literal<T>* literal = local
231 new vixl::aarch32::Literal<T>(value,
234 return literal;
assembler_arm.h 42 // Assembler literal is a value embedded in code, retrieved using a PC-relative load.
43 class Literal {
47 Literal(uint32_t size, const uint8_t* data)
49 DCHECK_LE(size, Literal::kMaxSize);
82 DISALLOW_COPY_AND_ASSIGN(Literal);
677 // Create a new literal with a given value.
680 Literal* NewLiteral(typename Identity<T>::type value) {
685 // Create a new literal with the given data.
686 virtual Literal* NewLiteral(size_t size, const uint8_t* data) = 0;
688 // Load literal
    [all...]
assembler_thumb2_test.cc 765 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
766 __ LoadLiteral(arm::R0, literal);
788 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
789 __ LoadLiteral(arm::R0, literal);
811 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
812 __ LoadLiteral(arm::R1, literal);
834 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678) local
859 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
884 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
909 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
934 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
962 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
990 arm::Literal* literal = __ NewLiteral<int64_t>(INT64_C(0x1234567887654321)); local
1014 arm::Literal* literal = __ NewLiteral<int64_t>(INT64_C(0x1234567887654321)); local
1042 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
1069 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
1098 arm::Literal* literal = __ NewLiteral<int64_t>(INT64_C(0x1234567887654321)); local
1128 arm::Literal* literal = __ NewLiteral<int64_t>(INT64_C(0x1234567887654321)); local
1194 arm::Literal* literal = __ NewLiteral<int32_t>(0x12345678); local
    [all...]
  /external/clang/test/CXX/expr/expr.const/
p2-0x.cpp 21 // literal class or a constexpr function [ Note: Overload resolution (13.3)
280 int n : []{ return 1; }(); // expected-error {{constant expression}} expected-error {{integral constant expression}} expected-note {{non-literal type}}
287 // with a constant expression [Note: a string literal (2.14.5 [lex.string])
296 // - a non-volatile glvalue of literal type that refers to a non-volatile
301 volatile int v; // expected-note {{not literal because}}
303 constexpr V v; // expected-error {{non-literal type}}
320 // - a non-volatile glvalue of literal type that refers to a non-volatile
543 struct Literal {
544 constexpr Literal(const char *name) : name(name) {}
548 constexpr Expr(Literal l) : IsLiteral(true), l(l) {
    [all...]
  /external/vixl/test/aarch32/
test-assembler-aarch32.cc 1085 // Make sure calling a macro-assembler instruction will generate literal pools
1152 // This test generates an Ldrd that needs to be rewinded and loads a literal
1170 // literal.
1171 Literal<uint64_t> l1(0xcafebeefdeadbaba);
1176 // literal pool empty afterwards.
1197 // literal that is already in the literal pool.
1207 // literal.
1208 Literal<uint64_t> l1(0xcafebeefdeadbaba);
1211 // Add a large string to the literal pool, but only *after* l1, so th
3630 Literal<uint64_t>* literal = local
3704 Literal<uint64_t>* literal = local
3799 Literal<uint64_t>* literal = local
3874 Literal<uint64_t>* literal = local
3948 Literal<uint64_t>* literal = local
4785 Literal<uint32_t>* literal = local
4973 Literal<uint64_t>* literal = local
    [all...]
  /toolchain/binutils/binutils-2.25/gas/testsuite/gas/arm/
armv8-a-it-bad.l 9 .*:49: Warning: IT blocks containing 16-bit Thumb instructions of the following class are deprecated in ARMv8: Literal loads
  /external/regex-re2/re2/
prefilter.cc 215 static Info* Literal(Rune r);
405 // Constructs Info for literal rune.
406 Prefilter::Info* Prefilter::Info::Literal(Rune r) {
413 // Constructs Info for literal rune for Latin1 encoded string.
562 info = Literal(re->rune());
577 info = Literal(re->runes()[0]);
579 info = Concat(info, Literal(re->runes()[i]));
  /external/v8/src/ast/
ast.cc 406 Literal* key = property->key()->AsLiteral();
464 Literal::Match, ZoneHashMap::kDefaultHashMapCapacity, allocator);
469 Literal* literal = property->key()->AsLiteral(); local
470 DCHECK(!literal->IsNullLiteral());
474 uint32_t hash = literal->Hash();
475 ZoneHashMap::Entry* entry = table.LookupOrInsert(literal, hash, allocator);
546 // Keep track of the number of elements in the object literal and
549 // literal with fast elements will be a waste of space.
640 // Remember both the literal's constant values as well as the ElementsKin
    [all...]
  /external/spirv-llvm/lib/SPIRV/libSPIRV/
SPIRVEntry.cpp 270 SPIRVEntry::addDecorate(Decoration Kind, SPIRVWord Literal) {
271 addDecorate(new SPIRVDecorate(Kind, this, Literal));
317 SPIRVWord Literal) {
318 addMemberDecorate(new SPIRVMemberDecorate(Kind, MemberNumber, this, Literal));
342 // Check if an entry has Kind of decoration and get the literal of the
  /external/regex-re2/re2/testing/
parse_test.cc 257 // Test that parsing with Literal works.
258 TEST(TestParse, Literal) {
259 TestParse(literal_tests, arraysize(literal_tests), Regexp::Literal, "literal");
397 // ToString produces "\\{" for a literal brace,

Completed in 833 milliseconds

1 2 3 4 5 6 7 8 9