2017-02-11 07:46:45 +08:00
|
|
|
//===--- HexagonIICHVX.td -------------------------------------------------===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2017-02-11 07:46:45 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2017-12-12 02:57:54 +08:00
|
|
|
def CVI_GATHER_PSEUDO : InstrItinClass;
|
2017-05-04 04:10:36 +08:00
|
|
|
def CVI_VA : InstrItinClass;
|
|
|
|
|
|
|
|
class HVXItin {
|
|
|
|
list<InstrItinData> HVXItin_list = [
|
|
|
|
InstrItinData<CVI_VA,
|
|
|
|
[InstrStage<1, [SLOT0,SLOT1,SLOT2,SLOT3], 0>,
|
|
|
|
InstrStage<1, [CVI_XLANE,CVI_SHIFT, CVI_MPY0, CVI_MPY1]>],
|
2017-12-12 02:57:54 +08:00
|
|
|
[9, 7, 7, 7], [HVX_FWD, HVX_FWD, HVX_FWD]>,
|
|
|
|
|
2019-03-07 01:43:50 +08:00
|
|
|
// Used by gather pseudo-instructions which are expanded into V6_vgather*
|
|
|
|
// and V6_vS32b_new_ai. Even though these instructions use CVI_LD resource,
|
|
|
|
// it's not included below to avoid having more than 4 InstrStages and
|
|
|
|
// thus changing 'MaxResTerms' to 5. Instead, both SLOT0 and SLOT1 are
|
|
|
|
// used, which should be sufficient.
|
2017-12-12 02:57:54 +08:00
|
|
|
InstrItinData <CVI_GATHER_PSEUDO,
|
|
|
|
[InstrStage<1, [SLOT0], 0>,
|
2019-03-07 01:43:50 +08:00
|
|
|
InstrStage<1, [SLOT1], 0>,
|
|
|
|
InstrStage<1, [CVI_ST], 0>,
|
2017-12-12 02:57:54 +08:00
|
|
|
InstrStage<1, [CVI_MPY01, CVI_XLSHF]>]>];
|
2017-02-11 07:46:45 +08:00
|
|
|
}
|