diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-06 14:02:43 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-06 14:02:43 +0000 |
commit | eabd405e665e24e00dc71c90baa196c38cd15f12 (patch) | |
tree | 462da95770e8ac02673e295ede05c7f015f0e18e /llvm/lib/Target/X86 | |
parent | cfc385d95445ea52ac68d55f2c13ac8d19f79855 (diff) | |
download | bcm5719-llvm-eabd405e665e24e00dc71c90baa196c38cd15f12.tar.gz bcm5719-llvm-eabd405e665e24e00dc71c90baa196c38cd15f12.zip |
[X86] Fix uninitialized variable warnings. NFCI.
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/X86CallFrameOptimization.cpp | 12 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86CmovConversion.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86DomainReassignment.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86EvexToVex.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86ExpandPseudo.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86FixupBWInsts.cpp | 8 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86FloatingPoint.cpp | 8 |
7 files changed, 26 insertions, 26 deletions
diff --git a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp index ad7e32b4efc..f8faa572dff 100644 --- a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp +++ b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp @@ -115,12 +115,12 @@ private: StringRef getPassName() const override { return "X86 Optimize Call Frame"; } - const X86InstrInfo *TII; - const X86FrameLowering *TFL; - const X86Subtarget *STI; - MachineRegisterInfo *MRI; - unsigned SlotSize; - unsigned Log2SlotSize; + const X86InstrInfo *TII = nullptr; + const X86FrameLowering *TFL = nullptr; + const X86Subtarget *STI = nullptr; + MachineRegisterInfo *MRI = nullptr; + unsigned SlotSize = 0; + unsigned Log2SlotSize = 0; }; } // end anonymous namespace diff --git a/llvm/lib/Target/X86/X86CmovConversion.cpp b/llvm/lib/Target/X86/X86CmovConversion.cpp index 5123853f545..409fd2f4a02 100644 --- a/llvm/lib/Target/X86/X86CmovConversion.cpp +++ b/llvm/lib/Target/X86/X86CmovConversion.cpp @@ -111,9 +111,9 @@ public: static char ID; private: - MachineRegisterInfo *MRI; - const TargetInstrInfo *TII; - const TargetRegisterInfo *TRI; + MachineRegisterInfo *MRI = nullptr; + const TargetInstrInfo *TII = nullptr; + const TargetRegisterInfo *TRI = nullptr; TargetSchedModel TSchedModel; /// List of consecutive CMOV instructions. diff --git a/llvm/lib/Target/X86/X86DomainReassignment.cpp b/llvm/lib/Target/X86/X86DomainReassignment.cpp index b4cf5cafbc6..438b9fd8eeb 100644 --- a/llvm/lib/Target/X86/X86DomainReassignment.cpp +++ b/llvm/lib/Target/X86/X86DomainReassignment.cpp @@ -373,9 +373,9 @@ public: }; class X86DomainReassignment : public MachineFunctionPass { - const X86Subtarget *STI; - MachineRegisterInfo *MRI; - const X86InstrInfo *TII; + const X86Subtarget *STI = nullptr; + MachineRegisterInfo *MRI = nullptr; + const X86InstrInfo *TII = nullptr; /// All edges that are included in some closure DenseSet<unsigned> EnclosedEdges; diff --git a/llvm/lib/Target/X86/X86EvexToVex.cpp b/llvm/lib/Target/X86/X86EvexToVex.cpp index 24c8e6d6f6e..f1cf9b94c9e 100644 --- a/llvm/lib/Target/X86/X86EvexToVex.cpp +++ b/llvm/lib/Target/X86/X86EvexToVex.cpp @@ -84,7 +84,7 @@ public: private: /// Machine instruction info used throughout the class. - const X86InstrInfo *TII; + const X86InstrInfo *TII = nullptr; }; } // end anonymous namespace diff --git a/llvm/lib/Target/X86/X86ExpandPseudo.cpp b/llvm/lib/Target/X86/X86ExpandPseudo.cpp index 9126a1fbea5..d35d65914b3 100644 --- a/llvm/lib/Target/X86/X86ExpandPseudo.cpp +++ b/llvm/lib/Target/X86/X86ExpandPseudo.cpp @@ -41,11 +41,11 @@ public: MachineFunctionPass::getAnalysisUsage(AU); } - const X86Subtarget *STI; - const X86InstrInfo *TII; - const X86RegisterInfo *TRI; - const X86MachineFunctionInfo *X86FI; - const X86FrameLowering *X86FL; + const X86Subtarget *STI = nullptr; + const X86InstrInfo *TII = nullptr; + const X86RegisterInfo *TRI = nullptr; + const X86MachineFunctionInfo *X86FI = nullptr; + const X86FrameLowering *X86FL = nullptr; bool runOnMachineFunction(MachineFunction &Fn) override; diff --git a/llvm/lib/Target/X86/X86FixupBWInsts.cpp b/llvm/lib/Target/X86/X86FixupBWInsts.cpp index 9f7c4afde76..11dd6902a5c 100644 --- a/llvm/lib/Target/X86/X86FixupBWInsts.cpp +++ b/llvm/lib/Target/X86/X86FixupBWInsts.cpp @@ -127,16 +127,16 @@ public: } private: - MachineFunction *MF; + MachineFunction *MF = nullptr; /// Machine instruction info used throughout the class. - const X86InstrInfo *TII; + const X86InstrInfo *TII = nullptr; /// Local member for function's OptForSize attribute. - bool OptForSize; + bool OptForSize = false; /// Machine loop info used for guiding some heruistics. - MachineLoopInfo *MLI; + MachineLoopInfo *MLI = nullptr; /// Register Liveness information after the current instruction. LivePhysRegs LiveRegs; diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp index e54e3745f23..27abc3e1e52 100644 --- a/llvm/lib/Target/X86/X86FloatingPoint.cpp +++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp @@ -83,7 +83,7 @@ namespace { StringRef getPassName() const override { return "X86 FP Stackifier"; } private: - const TargetInstrInfo *TII; // Machine instruction info. + const TargetInstrInfo *TII = nullptr; // Machine instruction info. // Two CFG edges are related if they leave the same block, or enter the same // block. The transitive closure of an edge under this relation is a @@ -119,7 +119,7 @@ namespace { SmallVector<LiveBundle, 8> LiveBundles; // The edge bundle analysis provides indices into the LiveBundles vector. - EdgeBundles *Bundles; + EdgeBundles *Bundles = nullptr; // Return a bitmask of FP registers in block's live-in list. static unsigned calcLiveInMask(MachineBasicBlock *MBB, bool RemoveFPs) { @@ -143,14 +143,14 @@ namespace { // Partition all the CFG edges into LiveBundles. void bundleCFGRecomputeKillFlags(MachineFunction &MF); - MachineBasicBlock *MBB; // Current basic block + MachineBasicBlock *MBB = nullptr; // Current basic block // The hardware keeps track of how many FP registers are live, so we have // to model that exactly. Usually, each live register corresponds to an // FP<n> register, but when dealing with calls, returns, and inline // assembly, it is sometimes necessary to have live scratch registers. unsigned Stack[8]; // FP<n> Registers in each stack slot... - unsigned StackTop; // The current top of the FP stack. + unsigned StackTop = 0; // The current top of the FP stack. enum { NumFPRegs = 8 // Including scratch pseudo-registers. |