Constant *getFullValue(Type *Ty) const;
Constant *getConstSplat(Type *Ty, int Val) const;
- Value *simplify(Value *Val) const;
-
Value *insertb(IRBuilderBase &Builder, Value *Dest, Value *Src, int Start,
int Length, int Where) const;
Value *vlalignb(IRBuilderBase &Builder, Value *Lo, Value *Hi,
return Splat;
}
-auto HexagonVectorCombine::simplify(Value *V) const -> Value * {
- if (auto *In = dyn_cast<Instruction>(V)) {
- SimplifyQuery Q(DL, &TLI, &DT, &AC, In);
- return simplifyInstruction(In, Q);
- }
- return nullptr;
-}
-
// Insert bytes [Start..Start+Length) of Src into Dst at byte Where.
auto HexagonVectorCombine::insertb(IRBuilderBase &Builder, Value *Dst,
Value *Src, int Start, int Length,