maxim-yurchuk 9731d8a4bb publishFullContrib: true for ydb 1 month ago
..
.yandex_meta 9731d8a4bb publishFullContrib: true for ydb 1 month ago
AsmParser 9731d8a4bb publishFullContrib: true for ydb 1 month ago
Disassembler 9731d8a4bb publishFullContrib: true for ydb 1 month ago
MCA 9731d8a4bb publishFullContrib: true for ydb 1 month ago
MCTargetDesc 9731d8a4bb publishFullContrib: true for ydb 1 month ago
TargetInfo 9731d8a4bb publishFullContrib: true for ydb 1 month ago
ImmutableGraph.h ee2b7fbda0 llvm16 targets 9 months ago
README-FPStack.txt 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
README-SSE.txt 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
README-X86-64.txt 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
README.txt 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86.h ee2b7fbda0 llvm16 targets 9 months ago
X86.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86AsmPrinter.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86AsmPrinter.h ee2b7fbda0 llvm16 targets 9 months ago
X86AvoidStoreForwardingBlocks.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86AvoidTrailingCall.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86CallFrameOptimization.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86CallLowering.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86CallLowering.h ee2b7fbda0 llvm16 targets 9 months ago
X86CallingConv.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86CallingConv.h ee2b7fbda0 llvm16 targets 9 months ago
X86CallingConv.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CmovConversion.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86DiscriminateMemOps.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86DomainReassignment.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86DynAllocaExpander.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86EvexToVex.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86ExpandPseudo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FastISel.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FastPreTileConfig.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FastTileConfig.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FixupBWInsts.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FixupLEAs.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FixupSetCC.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FlagsCopyLowering.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FloatingPoint.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FrameLowering.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86FrameLowering.h ee2b7fbda0 llvm16 targets 9 months ago
X86GenRegisterBankInfo.def ee2b7fbda0 llvm16 targets 9 months ago
X86ISelDAGToDAG.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86ISelLowering.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86ISelLowering.h ee2b7fbda0 llvm16 targets 9 months ago
X86IndirectBranchTracking.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86IndirectThunks.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InsertPrefetch.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InsertWait.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InstCombineIntrinsic.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86Instr3DNow.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrAMX.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrAVX512.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrArithmetic.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrBuilder.h ee2b7fbda0 llvm16 targets 9 months ago
X86InstrCMovSetCC.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrCompiler.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrControl.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrExtension.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFMA.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFMA3Info.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InstrFMA3Info.h ee2b7fbda0 llvm16 targets 9 months ago
X86InstrFPStack.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFoldTables.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InstrFoldTables.h ee2b7fbda0 llvm16 targets 9 months ago
X86InstrFormats.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFragmentsSIMD.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InstrInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86InstrInfo.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrKL.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrMMX.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrRAOINT.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrSGX.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrSNP.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrSSE.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrSVM.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrShiftRotate.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrSystem.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrTDX.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrTSX.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrVMX.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrVecCompiler.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrXOP.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstructionSelector.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86InterleavedAccess.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86IntrinsicsInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86KCFI.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86LegalizerInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86LegalizerInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86LoadValueInjectionLoadHardening.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86LoadValueInjectionRetHardening.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86LowerAMXIntrinsics.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86LowerAMXType.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86LowerTileCopy.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86MCInstLower.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86MachineFunctionInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86MachineFunctionInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86MacroFusion.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86MacroFusion.h ee2b7fbda0 llvm16 targets 9 months ago
X86OptimizeLEAs.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86PadShortFunction.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86PartialReduction.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86PfmCounters.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86PreAMXConfig.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86PreTileConfig.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86RegisterBankInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86RegisterBankInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86RegisterBanks.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86RegisterInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86RegisterInfo.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ReturnThunks.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86SchedAlderlakeP.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedBroadwell.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedHaswell.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedIceLake.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedPredicates.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedSandyBridge.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedSkylakeClient.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SchedSkylakeServer.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86Schedule.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleAtom.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleBdVer2.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleBtVer2.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleSLM.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleZnver1.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleZnver2.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ScheduleZnver3.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SelectionDAGInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86SelectionDAGInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86ShuffleDecodeConstantPool.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86ShuffleDecodeConstantPool.h ee2b7fbda0 llvm16 targets 9 months ago
X86SpeculativeExecutionSideEffectSuppression.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86SpeculativeLoadHardening.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86Subtarget.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86Subtarget.h ee2b7fbda0 llvm16 targets 9 months ago
X86TargetMachine.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86TargetMachine.h ee2b7fbda0 llvm16 targets 9 months ago
X86TargetObjectFile.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86TargetObjectFile.h ee2b7fbda0 llvm16 targets 9 months ago
X86TargetTransformInfo.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86TargetTransformInfo.h ee2b7fbda0 llvm16 targets 9 months ago
X86TileConfig.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86VZeroUpper.cpp ee2b7fbda0 llvm16 targets 9 months ago
X86WinEHState.cpp ee2b7fbda0 llvm16 targets 9 months ago
ya.make 9b567afd33 Library import 240819-0942 (#7994) 2 months ago

README-FPStack.txt

//===---------------------------------------------------------------------===//
// Random ideas for the X86 backend: FP stack related stuff
//===---------------------------------------------------------------------===//

//===---------------------------------------------------------------------===//

Some targets (e.g. athlons) prefer freep to fstp ST(0):
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00659.html

//===---------------------------------------------------------------------===//

This should use fiadd on chips where it is profitable:
double foo(double P, int *I) { return P+*I; }

We have fiadd patterns now but the followings have the same cost and
complexity. We need a way to specify the later is more profitable.

def FpADD32m : FpI<(ops RFP:$dst, RFP:$src1, f32mem:$src2), OneArgFPRW,
[(set RFP:$dst, (fadd RFP:$src1,
(extloadf64f32 addr:$src2)))]>;
// ST(0) = ST(0) + [mem32]

def FpIADD32m : FpI<(ops RFP:$dst, RFP:$src1, i32mem:$src2), OneArgFPRW,
[(set RFP:$dst, (fadd RFP:$src1,
(X86fild addr:$src2, i32)))]>;
// ST(0) = ST(0) + [mem32int]

//===---------------------------------------------------------------------===//

The FP stackifier should handle simple permutates to reduce number of shuffle
instructions, e.g. turning:

fld P -> fld Q
fld Q fld P
fxch

or:

fxch -> fucomi
fucomi jl X
jg X

Ideas:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02410.html


//===---------------------------------------------------------------------===//

Add a target specific hook to DAG combiner to handle SINT_TO_FP and
FP_TO_SINT when the source operand is already in memory.

//===---------------------------------------------------------------------===//

Open code rint,floor,ceil,trunc:
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02006.html
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02011.html

Opencode the sincos[f] libcall.

//===---------------------------------------------------------------------===//

None of the FPStack instructions are handled in
X86RegisterInfo::foldMemoryOperand, which prevents the spiller from
folding spill code into the instructions.

//===---------------------------------------------------------------------===//

Currently the x86 codegen isn't very good at mixing SSE and FPStack
code:

unsigned int foo(double x) { return x; }

foo:
subl $20, %esp
movsd 24(%esp), %xmm0
movsd %xmm0, 8(%esp)
fldl 8(%esp)
fisttpll (%esp)
movl (%esp), %eax
addl $20, %esp
ret

This just requires being smarter when custom expanding fptoui.

//===---------------------------------------------------------------------===//