reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  216
  217
  218
  219
  220
  221
  222
  223
  224
  225
  226
  227
  228
  229
  230
  231
  232
  233
  234
  235
  236
  237
  238
  239
  240
  241
  242
  243
  244
  245
  246
  247
  248
  249
  250
  251
  252
  253
  254
  255
  256
  257
  258
  259
  260
  261
  262
  263
  264
  265
  266
  267
  268
  269
  270
  271
  272
  273
  274
  275
  276
  277
  278
  279
  280
  281
  282
  283
  284
  285
  286
  287
  288
  289
  290
  291
  292
  293
  294
  295
  296
  297
  298
  299
  300
  301
  302
  303
  304
  305
  306
  307
  308
  309
  310
  311
  312
  313
  314
  315
  316
  317
  318
  319
  320
  321
  322
  323
  324
  325
  326
  327
  328
  329
  330
  331
  332
  333
  334
  335
  336
  337
  338
  339
  340
  341
  342
  343
  344
  345
  346
  347
  348
  349
  350
  351
  352
  353
  354
  355
  356
  357
  358
  359
  360
  361
  362
  363
  364
  365
  366
  367
  368
  369
  370
  371
  372
  373
  374
  375
  376
  377
  378
  379
  380
  381
  382
  383
  384
  385
  386
  387
  388
  389
  390
  391
  392
  393
  394
  395
  396
  397
  398
  399
  400
  401
  402
  403
  404
  405
  406
  407
  408
  409
  410
  411
  412
  413
  414
  415
  416
  417
  418
  419
  420
  421
  422
  423
  424
  425
  426
  427
  428
  429
  430
  431
  432
  433
  434
  435
  436
  437
  438
  439
  440
  441
  442
  443
  444
  445
  446
  447
  448
  449
  450
  451
  452
  453
  454
  455
  456
  457
  458
  459
  460
  461
  462
  463
  464
  465
  466
  467
  468
  469
  470
  471
  472
  473
  474
  475
  476
  477
  478
  479
  480
  481
  482
  483
  484
  485
  486
  487
  488
  489
  490
  491
  492
  493
  494
  495
  496
  497
  498
  499
  500
  501
  502
  503
  504
  505
  506
  507
  508
  509
  510
  511
  512
  513
  514
  515
  516
  517
  518
  519
  520
  521
  522
  523
  524
  525
  526
  527
  528
  529
  530
  531
  532
  533
  534
  535
  536
  537
  538
  539
  540
  541
  542
  543
  544
  545
  546
  547
  548
  549
  550
  551
  552
  553
  554
  555
  556
  557
  558
  559
  560
  561
  562
  563
  564
  565
  566
  567
  568
  569
  570
  571
  572
  573
  574
  575
  576
  577
  578
  579
  580
  581
  582
  583
  584
  585
  586
  587
/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|*                                                                            *|
|* Subtarget Enumeration Source Fragment                                      *|
|*                                                                            *|
|* Automatically generated file, do not edit!                                 *|
|*                                                                            *|
\*===----------------------------------------------------------------------===*/


#ifdef GET_SUBTARGETINFO_ENUM
#undef GET_SUBTARGETINFO_ENUM

namespace llvm {
namespace AVR {
enum {
  ELFArchAVR1 = 0,
  ELFArchAVR2 = 1,
  ELFArchAVR3 = 2,
  ELFArchAVR4 = 3,
  ELFArchAVR5 = 4,
  ELFArchAVR6 = 5,
  ELFArchAVR25 = 6,
  ELFArchAVR31 = 7,
  ELFArchAVR35 = 8,
  ELFArchAVR51 = 9,
  ELFArchTiny = 10,
  ELFArchXMEGA1 = 11,
  ELFArchXMEGA2 = 12,
  ELFArchXMEGA3 = 13,
  ELFArchXMEGA4 = 14,
  ELFArchXMEGA5 = 15,
  ELFArchXMEGA6 = 16,
  ELFArchXMEGA7 = 17,
  FamilyAVR0 = 18,
  FamilyAVR1 = 19,
  FamilyAVR2 = 20,
  FamilyAVR3 = 21,
  FamilyAVR4 = 22,
  FamilyAVR5 = 23,
  FamilyAVR6 = 24,
  FamilyAVR25 = 25,
  FamilyAVR31 = 26,
  FamilyAVR35 = 27,
  FamilyAVR51 = 28,
  FamilyTiny = 29,
  FamilyXMEGA = 30,
  FamilyXMEGAU = 31,
  FeatureADDSUBIW = 32,
  FeatureBREAK = 33,
  FeatureDES = 34,
  FeatureEIJMPCALL = 35,
  FeatureELPM = 36,
  FeatureELPMX = 37,
  FeatureIJMPCALL = 38,
  FeatureJMPCALL = 39,
  FeatureLPM = 40,
  FeatureLPMX = 41,
  FeatureMOVW = 42,
  FeatureMultiplication = 43,
  FeatureRMW = 44,
  FeatureSPM = 45,
  FeatureSPMX = 46,
  FeatureSRAM = 47,
  FeatureSetSpecial = 48,
  FeatureSmallStack = 49,
  FeatureTinyEncoding = 50,
  NumSubtargetFeatures = 51
};
} // end namespace AVR
} // end namespace llvm

#endif // GET_SUBTARGETINFO_ENUM


#ifdef GET_SUBTARGETINFO_MC_DESC
#undef GET_SUBTARGETINFO_MC_DESC

namespace llvm {
// Sorted (by key) array of values for CPU features.
extern const llvm::SubtargetFeatureKV AVRFeatureKV[] = {
  { "addsubiw", "Enable 16-bit register-immediate addition and subtraction instructions", AVR::FeatureADDSUBIW, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr0", "The device is a part of the avr0 family", AVR::FamilyAVR0, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr1", "The device is a part of the avr1 family", AVR::FamilyAVR1, { { { 0x10000040000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr2", "The device is a part of the avr2 family", AVR::FamilyAVR2, { { { 0x804100080000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr25", "The device is a part of the avr25 family", AVR::FamilyAVR25, { { { 0x260200100000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr3", "The device is a part of the avr3 family", AVR::FamilyAVR3, { { { 0x8000100000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr31", "The device is a part of the avr31 family", AVR::FamilyAVR31, { { { 0x1000200000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr35", "The device is a part of the avr35 family", AVR::FamilyAVR35, { { { 0x260200200000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr4", "The device is a part of the avr4 family", AVR::FamilyAVR4, { { { 0x2e0200100000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr5", "The device is a part of the avr5 family", AVR::FamilyAVR5, { { { 0x2e0200200000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr51", "The device is a part of the avr51 family", AVR::FamilyAVR51, { { { 0x3000800000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avr6", "The device is a part of the avr6 family", AVR::FamilyAVR6, { { { 0x10000000ULL, 0x0ULL, 0x0ULL, } } } },
  { "avrtiny", "The device is a part of the avrtiny family", AVR::FamilyTiny, { { { 0x4800200040000ULL, 0x0ULL, 0x0ULL, } } } },
  { "break", "The device supports the `BREAK` debugging instruction", AVR::FeatureBREAK, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "des", "The device supports the `DES k` encryption instruction", AVR::FeatureDES, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "eijmpcall", "The device supports the `EIJMP`/`EICALL` instructions", AVR::FeatureEIJMPCALL, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "elpm", "The device supports the ELPM instruction", AVR::FeatureELPM, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "elpmx", "The device supports the `ELPM Rd, Z[+]` instructions", AVR::FeatureELPMX, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "ijmpcall", "The device supports `IJMP`/`ICALL`instructions", AVR::FeatureIJMPCALL, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "jmpcall", "The device supports the `JMP` and `CALL` instructions", AVR::FeatureJMPCALL, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "lpm", "The device supports the `LPM` instruction", AVR::FeatureLPM, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "lpmx", "The device supports the `LPM Rd, Z[+]` instruction", AVR::FeatureLPMX, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "movw", "The device supports the 16-bit MOVW instruction", AVR::FeatureMOVW, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "mul", "The device supports the multiplication instructions", AVR::FeatureMultiplication, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "rmw", "The device supports the read-write-modify instructions: XCH, LAS, LAC, LAT", AVR::FeatureRMW, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "smallstack", "The device has an 8-bit stack pointer", AVR::FeatureSmallStack, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "special", "Enable use of the entire instruction set - used for debugging", AVR::FeatureSetSpecial, { { { 0xffff00000000ULL, 0x0ULL, 0x0ULL, } } } },
  { "spm", "The device supports the `SPM` instruction", AVR::FeatureSPM, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "spmx", "The device supports the `SPM Z+` instruction", AVR::FeatureSPMX, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "sram", "The device has random access memory", AVR::FeatureSRAM, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "tinyencoding", "The device has Tiny core specific instruction encodings", AVR::FeatureTinyEncoding, { { { 0x0ULL, 0x0ULL, 0x0ULL, } } } },
  { "xmega", "The device is a part of the xmega family", AVR::FamilyXMEGA, { { { 0x400c10000000ULL, 0x0ULL, 0x0ULL, } } } },
  { "xmegau", "The device is a part of the xmegau family", AVR::FamilyXMEGAU, { { { 0x100040000000ULL, 0x0ULL, 0x0ULL, } } } },
};

#ifdef DBGFIELD
#error "<target>GenSubtargetInfo.inc requires a DBGFIELD macro"
#endif
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
#define DBGFIELD(x) x,
#else
#define DBGFIELD(x)
#endif

// ===============================================================
// Data tables for the new per-operand machine model.

// {ProcResourceIdx, Cycles}
extern const llvm::MCWriteProcResEntry AVRWriteProcResTable[] = {
  { 0,  0}, // Invalid
}; // AVRWriteProcResTable

// {Cycles, WriteResourceID}
extern const llvm::MCWriteLatencyEntry AVRWriteLatencyTable[] = {
  { 0,  0}, // Invalid
}; // AVRWriteLatencyTable

// {UseIdx, WriteResourceID, Cycles}
extern const llvm::MCReadAdvanceEntry AVRReadAdvanceTable[] = {
  {0,  0,  0}, // Invalid
}; // AVRReadAdvanceTable

#undef DBGFIELD

static const llvm::MCSchedModel NoSchedModel = {
  MCSchedModel::DefaultIssueWidth,
  MCSchedModel::DefaultMicroOpBufferSize,
  MCSchedModel::DefaultLoopMicroOpBufferSize,
  MCSchedModel::DefaultLoadLatency,
  MCSchedModel::DefaultHighLatency,
  MCSchedModel::DefaultMispredictPenalty,
  false, // PostRAScheduler
  false, // CompleteModel
  0, // Processor ID
  nullptr, nullptr, 0, 0, // No instruction-level machine model.
  nullptr, // No Itinerary
  nullptr // No extra processor descriptor
};

// Sorted (by key) array of values for CPU subtype.
extern const llvm::SubtargetSubTypeKV AVRSubTypeKV[] = {
 { "at43usb320", { { { 0x4000080ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at43usb355", { { { 0x200004ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at76c711", { { { 0x200004ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at86rf401", { { { 0x60000100040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90c8534", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90can128", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90can32", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90can64", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm1", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm161", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm2", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm216", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm2b", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm3", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm316", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm3b", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90pwm81", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s1200", { { { 0x40001ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s2313", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s2323", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s2333", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s2343", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s4414", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s4433", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s4434", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s8515", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90s8535", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90scr100", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90usb1286", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90usb1287", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90usb162", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90usb646", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90usb647", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at90usb82", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "at94k", { { { 0xe0000200010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata5272", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata5505", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata5790", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata5795", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata6285", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata6286", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "ata6289", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega103", { { { 0x4000080ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega128", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega1280", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega1281", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega1284", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega1284p", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega1284rfr2", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega128a", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega128rfa1", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega128rfr2", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega161", { { { 0x2e0000200010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega162", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega163", { { { 0x2e0000200010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega164a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega164p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega164pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega165", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega165a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega165p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega165pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega168", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega168a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega168p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega168pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega169", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega169a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega169p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega169pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16hva", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16hva2", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16hvb", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16hvbrevb", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16m1", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16u2", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega16u4", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega2560", { { { 0x1000020ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega2561", { { { 0x1000020ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega2564rfr2", { { { 0x1000020ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega256rfr2", { { { 0x1000020ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega323", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega324a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega324p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega324pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega325", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3250", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3250a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3250p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3250pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega325a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega325p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega325pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega328", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega328p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega329", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3290", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3290a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3290p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega3290pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega329a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega329p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega329pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32c1", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32hvb", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32hvbrevb", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32m1", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32u2", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32u4", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega32u6", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega406", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega48", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega48a", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega48p", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega48pa", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega64", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega640", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega644", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega644a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega644p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega644pa", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega644rfr2", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega645", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega6450", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega6450a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega6450p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega645a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega645p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega649", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega6490", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega6490a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega6490p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega649a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega649p", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega64a", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega64c1", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega64hve", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega64m1", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega64rfr2", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega8", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega8515", { { { 0x2e0000100008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega8535", { { { 0x2e0000100008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega88", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega88a", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega88p", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega88pa", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega8a", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega8hva", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atmega8u2", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny10", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny102", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny104", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny11", { { { 0x80001ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny12", { { { 0x80001ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny13", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny13a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny15", { { { 0x80001ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny1634", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny167", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny20", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny22", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny2313", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny2313a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny24", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny24a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny25", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny26", { { { 0x20000100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny261", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny261a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny28", { { { 0x80001ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny4", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny40", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny4313", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny43u", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny44", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny44a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny45", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny461", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny461a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny48", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny5", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny828", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny84", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny84a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny85", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny861", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny861a", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny87", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny88", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "attiny9", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128a1", { { { 0x40020000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128a1u", { { { 0x80020000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128a3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128a3u", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128a4u", { { { 0x80020000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128b1", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128b3", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128c3", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128d3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega128d4", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega16a4", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega16a4u", { { { 0x80001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega16c4", { { { 0x80001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega16d4", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega16e5", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega192a3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega192a3u", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega192c3", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega192d3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega256a3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega256a3b", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega256a3bu", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega256a3u", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega256c3", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega256d3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega32a4", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega32a4u", { { { 0x80001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega32c4", { { { 0x80001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega32d4", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega32e5", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega32x1", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega384c3", { { { 0x80010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega384d3", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64a1", { { { 0x40008000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64a1u", { { { 0x80008000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64a3", { { { 0x40004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64a3u", { { { 0x80004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64a4u", { { { 0x80004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64b1", { { { 0x80004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64b3", { { { 0x80004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64c3", { { { 0x80004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64d3", { { { 0x40004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega64d4", { { { 0x40004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "atxmega8e5", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr1", { { { 0x80001ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr2", { { { 0x100002ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr25", { { { 0x2000040ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr3", { { { 0x200004ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr31", { { { 0x4000080ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr35", { { { 0x8000100ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr4", { { { 0x400008ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr5", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr51", { { { 0x10000200ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avr6", { { { 0x1000020ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrtiny", { { { 0x20000400ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega1", { { { 0x40000800ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega2", { { { 0x40001000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega3", { { { 0x40002000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega4", { { { 0x40004000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega5", { { { 0x40008000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega6", { { { 0x40010000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "avrxmega7", { { { 0x40020000ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
 { "m3000", { { { 0x800010ULL, 0x0ULL, 0x0ULL, } } }, &NoSchedModel },
};

namespace AVR_MC {
unsigned resolveVariantSchedClassImpl(unsigned SchedClass,
    const MCInst *MI, unsigned CPUID) {
  // Don't know how to resolve this scheduling class.
  return 0;
}
} // end namespace AVR_MC

struct AVRGenMCSubtargetInfo : public MCSubtargetInfo {
  AVRGenMCSubtargetInfo(const Triple &TT, 
    StringRef CPU, StringRef FS, ArrayRef<SubtargetFeatureKV> PF,
    ArrayRef<SubtargetSubTypeKV> PD,
    const MCWriteProcResEntry *WPR,
    const MCWriteLatencyEntry *WL,
    const MCReadAdvanceEntry *RA, const InstrStage *IS,
    const unsigned *OC, const unsigned *FP) :
      MCSubtargetInfo(TT, CPU, FS, PF, PD,
                      WPR, WL, RA, IS, OC, FP) { }

  unsigned resolveVariantSchedClass(unsigned SchedClass,
      const MCInst *MI, unsigned CPUID) const override {
    return AVR_MC::resolveVariantSchedClassImpl(SchedClass, MI, CPUID); 
  }
};

static inline MCSubtargetInfo *createAVRMCSubtargetInfoImpl(const Triple &TT, StringRef CPU, StringRef FS) {
  return new AVRGenMCSubtargetInfo(TT, CPU, FS, AVRFeatureKV, AVRSubTypeKV, 
                      AVRWriteProcResTable, AVRWriteLatencyTable, AVRReadAdvanceTable, 
                      nullptr, nullptr, nullptr);
}

} // end namespace llvm

#endif // GET_SUBTARGETINFO_MC_DESC


#ifdef GET_SUBTARGETINFO_TARGET_DESC
#undef GET_SUBTARGETINFO_TARGET_DESC

#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

// ParseSubtargetFeatures - Parses features string setting specified
// subtarget options.
void llvm::AVRSubtarget::ParseSubtargetFeatures(StringRef CPU, StringRef FS) {
  LLVM_DEBUG(dbgs() << "\nFeatures:" << FS);
  LLVM_DEBUG(dbgs() << "\nCPU:" << CPU << "\n\n");
  InitMCProcessorInfo(CPU, FS);
  const FeatureBitset& Bits = getFeatureBits();
  if (Bits[AVR::ELFArchAVR1] && ELFArch < ELF::EF_AVR_ARCH_AVR1) ELFArch = ELF::EF_AVR_ARCH_AVR1;
  if (Bits[AVR::ELFArchAVR2] && ELFArch < ELF::EF_AVR_ARCH_AVR2) ELFArch = ELF::EF_AVR_ARCH_AVR2;
  if (Bits[AVR::ELFArchAVR3] && ELFArch < ELF::EF_AVR_ARCH_AVR3) ELFArch = ELF::EF_AVR_ARCH_AVR3;
  if (Bits[AVR::ELFArchAVR4] && ELFArch < ELF::EF_AVR_ARCH_AVR4) ELFArch = ELF::EF_AVR_ARCH_AVR4;
  if (Bits[AVR::ELFArchAVR5] && ELFArch < ELF::EF_AVR_ARCH_AVR5) ELFArch = ELF::EF_AVR_ARCH_AVR5;
  if (Bits[AVR::ELFArchAVR6] && ELFArch < ELF::EF_AVR_ARCH_AVR6) ELFArch = ELF::EF_AVR_ARCH_AVR6;
  if (Bits[AVR::ELFArchAVR25] && ELFArch < ELF::EF_AVR_ARCH_AVR25) ELFArch = ELF::EF_AVR_ARCH_AVR25;
  if (Bits[AVR::ELFArchAVR31] && ELFArch < ELF::EF_AVR_ARCH_AVR31) ELFArch = ELF::EF_AVR_ARCH_AVR31;
  if (Bits[AVR::ELFArchAVR35] && ELFArch < ELF::EF_AVR_ARCH_AVR35) ELFArch = ELF::EF_AVR_ARCH_AVR35;
  if (Bits[AVR::ELFArchAVR51] && ELFArch < ELF::EF_AVR_ARCH_AVR51) ELFArch = ELF::EF_AVR_ARCH_AVR51;
  if (Bits[AVR::ELFArchTiny] && ELFArch < ELF::EF_AVR_ARCH_AVRTINY) ELFArch = ELF::EF_AVR_ARCH_AVRTINY;
  if (Bits[AVR::ELFArchXMEGA1] && ELFArch < ELF::EF_AVR_ARCH_XMEGA1) ELFArch = ELF::EF_AVR_ARCH_XMEGA1;
  if (Bits[AVR::ELFArchXMEGA2] && ELFArch < ELF::EF_AVR_ARCH_XMEGA2) ELFArch = ELF::EF_AVR_ARCH_XMEGA2;
  if (Bits[AVR::ELFArchXMEGA3] && ELFArch < ELF::EF_AVR_ARCH_XMEGA3) ELFArch = ELF::EF_AVR_ARCH_XMEGA3;
  if (Bits[AVR::ELFArchXMEGA4] && ELFArch < ELF::EF_AVR_ARCH_XMEGA4) ELFArch = ELF::EF_AVR_ARCH_XMEGA4;
  if (Bits[AVR::ELFArchXMEGA5] && ELFArch < ELF::EF_AVR_ARCH_XMEGA5) ELFArch = ELF::EF_AVR_ARCH_XMEGA5;
  if (Bits[AVR::ELFArchXMEGA6] && ELFArch < ELF::EF_AVR_ARCH_XMEGA6) ELFArch = ELF::EF_AVR_ARCH_XMEGA6;
  if (Bits[AVR::ELFArchXMEGA7] && ELFArch < ELF::EF_AVR_ARCH_XMEGA7) ELFArch = ELF::EF_AVR_ARCH_XMEGA7;
  if (Bits[AVR::FamilyAVR0]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR1]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR2]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR3]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR4]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR5]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR6]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR25]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR31]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR35]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyAVR51]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyTiny]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyXMEGA]) m_FeatureSetDummy = true;
  if (Bits[AVR::FamilyXMEGAU]) m_FeatureSetDummy = true;
  if (Bits[AVR::FeatureADDSUBIW]) m_hasADDSUBIW = true;
  if (Bits[AVR::FeatureBREAK]) m_hasBREAK = true;
  if (Bits[AVR::FeatureDES]) m_hasDES = true;
  if (Bits[AVR::FeatureEIJMPCALL]) m_hasEIJMPCALL = true;
  if (Bits[AVR::FeatureELPM]) m_hasELPM = true;
  if (Bits[AVR::FeatureELPMX]) m_hasELPMX = true;
  if (Bits[AVR::FeatureIJMPCALL]) m_hasIJMPCALL = true;
  if (Bits[AVR::FeatureJMPCALL]) m_hasJMPCALL = true;
  if (Bits[AVR::FeatureLPM]) m_hasLPM = true;
  if (Bits[AVR::FeatureLPMX]) m_hasLPMX = true;
  if (Bits[AVR::FeatureMOVW]) m_hasMOVW = true;
  if (Bits[AVR::FeatureMultiplication]) m_supportsMultiplication = true;
  if (Bits[AVR::FeatureRMW]) m_supportsRMW = true;
  if (Bits[AVR::FeatureSPM]) m_hasSPM = true;
  if (Bits[AVR::FeatureSPMX]) m_hasSPMX = true;
  if (Bits[AVR::FeatureSRAM]) m_hasSRAM = true;
  if (Bits[AVR::FeatureSetSpecial]) m_FeatureSetDummy = true;
  if (Bits[AVR::FeatureSmallStack]) m_hasSmallStack = true;
  if (Bits[AVR::FeatureTinyEncoding]) m_hasTinyEncoding = true;
}
#endif // GET_SUBTARGETINFO_TARGET_DESC


#ifdef GET_SUBTARGETINFO_HEADER
#undef GET_SUBTARGETINFO_HEADER

namespace llvm {
class DFAPacketizer;
namespace AVR_MC {
unsigned resolveVariantSchedClassImpl(unsigned SchedClass, const MCInst *MI, unsigned CPUID);
} // end namespace AVR_MC

struct AVRGenSubtargetInfo : public TargetSubtargetInfo {
  explicit AVRGenSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS);
public:
  unsigned resolveSchedClass(unsigned SchedClass,  const MachineInstr *DefMI, const TargetSchedModel *SchedModel) const override;
  unsigned resolveVariantSchedClass(unsigned SchedClass, const MCInst *MI, unsigned CPUID) const override;
  DFAPacketizer *createDFAPacketizer(const InstrItineraryData *IID) const;
};
} // end namespace llvm

#endif // GET_SUBTARGETINFO_HEADER


#ifdef GET_SUBTARGETINFO_CTOR
#undef GET_SUBTARGETINFO_CTOR

#include "llvm/CodeGen/TargetSchedule.h"

namespace llvm {
extern const llvm::SubtargetFeatureKV AVRFeatureKV[];
extern const llvm::SubtargetSubTypeKV AVRSubTypeKV[];
extern const llvm::MCWriteProcResEntry AVRWriteProcResTable[];
extern const llvm::MCWriteLatencyEntry AVRWriteLatencyTable[];
extern const llvm::MCReadAdvanceEntry AVRReadAdvanceTable[];
AVRGenSubtargetInfo::AVRGenSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
  : TargetSubtargetInfo(TT, CPU, FS, makeArrayRef(AVRFeatureKV, 33), makeArrayRef(AVRSubTypeKV, 257), 
                        AVRWriteProcResTable, AVRWriteLatencyTable, AVRReadAdvanceTable, 
                        nullptr, nullptr, nullptr) {}

unsigned AVRGenSubtargetInfo
::resolveSchedClass(unsigned SchedClass, const MachineInstr *MI, const TargetSchedModel *SchedModel) const {
  report_fatal_error("Expected a variant SchedClass");
} // AVRGenSubtargetInfo::resolveSchedClass

unsigned AVRGenSubtargetInfo
::resolveVariantSchedClass(unsigned SchedClass, const MCInst *MI, unsigned CPUID) const {
  return AVR_MC::resolveVariantSchedClassImpl(SchedClass, MI, CPUID);
} // AVRGenSubtargetInfo::resolveVariantSchedClass

} // end namespace llvm

#endif // GET_SUBTARGETINFO_CTOR


#ifdef GET_STIPREDICATE_DECLS_FOR_MC_ANALYSIS
#undef GET_STIPREDICATE_DECLS_FOR_MC_ANALYSIS

#endif // GET_STIPREDICATE_DECLS_FOR_MC_ANALYSIS


#ifdef GET_STIPREDICATE_DEFS_FOR_MC_ANALYSIS
#undef GET_STIPREDICATE_DEFS_FOR_MC_ANALYSIS

#endif // GET_STIPREDICATE_DEFS_FOR_MC_ANALYSIS