vitalyisaev 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
..
AsmParser 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
Disassembler 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
MCA 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
MCTargetDesc 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
TargetInfo 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
ImmutableGraph.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year 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 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86AsmPrinter.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86AsmPrinter.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86AvoidStoreForwardingBlocks.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86AvoidTrailingCall.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CallFrameOptimization.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CallLowering.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CallLowering.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CallingConv.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CallingConv.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CallingConv.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86CmovConversion.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86DiscriminateMemOps.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86DomainReassignment.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86DynAllocaExpander.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86EvexToVex.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ExpandPseudo.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FastISel.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FastTileConfig.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FixupBWInsts.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FixupLEAs.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FixupSetCC.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FlagsCopyLowering.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FloatingPoint.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FrameLowering.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86FrameLowering.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86GenRegisterBankInfo.def 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ISelDAGToDAG.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ISelLowering.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ISelLowering.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86IndirectBranchTracking.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86IndirectThunks.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InsertPrefetch.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InsertWait.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstCombineIntrinsic.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year 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 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year 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 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFMA3Info.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFPStack.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFoldTables.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrFoldTables.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year 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 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InstrInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year 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
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 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86InterleavedAccess.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86IntrinsicsInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LegalizerInfo.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LegalizerInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LoadValueInjectionLoadHardening.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LoadValueInjectionRetHardening.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LowerAMXIntrinsics.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LowerAMXType.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86LowerTileCopy.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86MCInstLower.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86MachineFunctionInfo.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86MachineFunctionInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86MacroFusion.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86MacroFusion.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86OptimizeLEAs.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86PadShortFunction.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86PartialReduction.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86PfmCounters.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86PreAMXConfig.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86PreTileConfig.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterBankInfo.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterBankInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterBanks.td 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterInfo.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86RegisterInfo.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 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SelectionDAGInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ShuffleDecodeConstantPool.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86ShuffleDecodeConstantPool.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SpeculativeExecutionSideEffectSuppression.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86SpeculativeLoadHardening.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86Subtarget.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86Subtarget.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TargetMachine.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TargetMachine.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TargetObjectFile.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TargetObjectFile.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TargetTransformInfo.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TargetTransformInfo.h 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86TileConfig.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86VZeroUpper.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
X86WinEHState.cpp 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year ago
ya.make 6ffe9e5365 YQ Connector: support managed ClickHouse 1 year 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.

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