Home
last modified time | relevance | path

Searched refs:Shr (Results 1 – 25 of 61) sorted by relevance

123

/external/rust/crates/nom/src/bits/
Dstreaming.rs6 use crate::lib::std::ops::{AddAssign, RangeFrom, Shl, Shr, Div};
14 O: From<u8> + AddAssign + Shl<usize, Output = O> + Shr<usize, Output = O>, in take()
61 O: From<u8> + AddAssign + Shl<usize, Output = O> + Shr<usize, Output = O> + PartialEq, in tag()
Dcomplete.rs6 use crate::lib::std::ops::{AddAssign, RangeFrom, Shl, Shr, Div};
14 O: From<u8> + AddAssign + Shl<usize, Output = O> + Shr<usize, Output = O>, in take()
61 O: From<u8> + AddAssign + Shl<usize, Output = O> + Shr<usize, Output = O> + PartialEq, in tag()
Dmacros.rs137 use crate::lib::std::ops::{AddAssign, Shl, Shr};
222 impl Shr<usize> for FakeUint {
/external/rust/crates/num-integer/src/
Daverage.rs1 use core::ops::{BitAnd, BitOr, BitXor, Shr};
47 I: Integer + Shr<usize, Output = I>,
/external/clang/test/FixIt/
Dfixit.cpp276 struct Shr { struct
277 template<typename T> Shr(T);
289 (Shr)&t<S<int>>>>=p; // expected-error {{use '> >'}} in g()
/external/llvm-project/clang/test/FixIt/
Dfixit.cpp288 struct Shr { struct
289 template<typename T> Shr(T);
302 (Shr)&t<S<int>>>>=p; // expected-error {{use '> >'}} in g()
/external/rust/crates/num-traits/src/
Dint.rs1 use core::ops::{BitAnd, BitOr, BitXor, Not, Shl, Shr};
48 + Shr<usize, Output = Self>
/external/rust/crates/syn/src/
Dop.rs31 Shr(Token![>>]),
96 input.parse().map(BinOp::Shr) in parse_binop()
203 BinOp::Shr(t) => t.to_tokens(tokens), in to_tokens()
Dtoken.rs748 ">>" pub struct Shr/2 /// `>>`
867 [>>] => { $crate::token::Shr };
/external/rust/crates/num-traits/src/ops/
Dwrapping.rs2 use core::ops::{Add, Mul, Neg, Shl, Shr, Sub};
187 pub trait WrappingShr: Sized + Shr<usize, Output = Self> {
264 Wrapping<T>: Shr<usize, Output = Wrapping<T>>,
Dchecked.rs1 use core::ops::{Add, Div, Mul, Rem, Shl, Shr, Sub};
246 pub trait CheckedShr: Sized + Shr<u32, Output = Self> {
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp558 Instruction *Shr = cast<Instruction>(I->getOperand(0)); in SimplifyDemandedUseBits() local
559 Value *R = SimplifyShrShlDemandedBits(Shr, I, DemandedMask, in SimplifyDemandedUseBits()
831 Value *InstCombiner::SimplifyShrShlDemandedBits(Instruction *Shr, in SimplifyShrShlDemandedBits() argument
838 const APInt &ShrOp1 = cast<ConstantInt>(Shr->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
842 Value *VarX = Shr->getOperand(0); in SimplifyShrShlDemandedBits()
858 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in SimplifyShrShlDemandedBits()
874 if (!Shr->hasOneUse()) in SimplifyShrShlDemandedBits()
888 if (cast<BinaryOperator>(Shr)->isExact()) in SimplifyShrShlDemandedBits()
DInstCombineCompares.cpp1342 Instruction *InstCombiner::FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr, in FoldICmpShrCst() argument
1357 if (ICI.isSigned() != (Shr->getOpcode() == Instruction::AShr)) in FoldICmpShrCst()
1363 if (Shr->getOpcode() == Instruction::AShr && in FoldICmpShrCst()
1364 (!Shr->isExact() || ShAmtVal == TypeBits - 1)) in FoldICmpShrCst()
1368 Worklist.Add(Shr); in FoldICmpShrCst()
1371 ConstantInt::get(Shr->getType(), APInt::getOneBitSet(TypeBits, ShAmtVal)); in FoldICmpShrCst()
1374 Shr->getOpcode() == Instruction::AShr ? in FoldICmpShrCst()
1375 Builder->CreateSDiv(Shr->getOperand(0), DivCst, "", Shr->isExact()) : in FoldICmpShrCst()
1376 Builder->CreateUDiv(Shr->getOperand(0), DivCst, "", Shr->isExact()); in FoldICmpShrCst()
1398 if (Shr->getOpcode() == Instruction::LShr) in FoldICmpShrCst()
[all …]
/external/rust/crates/ring/src/digest/
Dsha2.rs18 ops::{Add, AddAssign, BitAnd, BitOr, BitXor, Not, Shr},
168 trait Sha2: Word + BitXor<Output = Self> + Shr<usize, Output = Self> {
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp520 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local
521 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
962 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument
967 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits()
983 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits()
999 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits()
1013 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
DInstCombineInternal.h579 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
670 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
DInstCombineCompares.cpp2207 BinaryOperator *Shr, in foldICmpShrConstant() argument
2211 Value *X = Shr->getOperand(0); in foldICmpShrConstant()
2213 if (Cmp.isEquality() && Shr->isExact() && Shr->hasOneUse() && in foldICmpShrConstant()
2218 if (Cmp.isEquality() && match(Shr->getOperand(0), m_APInt(ShiftVal))) in foldICmpShrConstant()
2219 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftVal); in foldICmpShrConstant()
2222 if (!match(Shr->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShrConstant()
2232 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant()
2233 bool IsExact = Shr->isExact(); in foldICmpShrConstant()
2234 Type *ShrTy = Shr->getType(); in foldICmpShrConstant()
2284 if (Shr->isExact()) in foldICmpShrConstant()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp500 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local
501 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
934 InstCombiner::simplifyShrShlDemandedBits(Instruction *Shr, const APInt &ShrOp1, in simplifyShrShlDemandedBits() argument
941 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits()
957 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits()
973 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits()
987 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
DInstCombineCompares.cpp2164 BinaryOperator *Shr, in foldICmpShrConstant() argument
2168 Value *X = Shr->getOperand(0); in foldICmpShrConstant()
2170 if (Cmp.isEquality() && Shr->isExact() && Shr->hasOneUse() && in foldICmpShrConstant()
2175 if (Cmp.isEquality() && match(Shr->getOperand(0), m_APInt(ShiftVal))) in foldICmpShrConstant()
2176 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftVal); in foldICmpShrConstant()
2179 if (!match(Shr->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShrConstant()
2189 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant()
2190 bool IsExact = Shr->isExact(); in foldICmpShrConstant()
2191 Type *ShrTy = Shr->getType(); in foldICmpShrConstant()
2241 if (Shr->isExact()) in foldICmpShrConstant()
[all …]
DInstCombineInternal.h855 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
946 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp777 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local
778 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift()
779 Shr->setIsExact(true); in strengthenRightShift()
/external/llvm-project/clang/include/clang/AST/
DStmtVisitor.h129 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
/external/rust/crates/serde_json/src/lexical/
Dnum.rs140 pub trait Integer: Number + ops::BitAnd<Output = Self> + ops::Shr<i32, Output = Self> {
/external/clang/include/clang/AST/
DStmtVisitor.h126 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
/external/rust/crates/arbitrary/src/
Dunstructured.rs590 + ops::Shr<Self, Output = Self>

123