Home
last modified time | relevance | path

Searched refs:Ref (Results 1 – 25 of 149) sorted by relevance

123456

/external/llvm/include/llvm/IR/
DTrackingMDRef.h106 TrackingMDRef Ref; variable
110 explicit TypedTrackingMDRef(T *MD) : Ref(static_cast<Metadata *>(MD)) {} in TypedTrackingMDRef()
112 TypedTrackingMDRef(TypedTrackingMDRef &&X) : Ref(std::move(X.Ref)) {} in TypedTrackingMDRef()
113 TypedTrackingMDRef(const TypedTrackingMDRef &X) : Ref(X.Ref) {} in TypedTrackingMDRef()
115 Ref = std::move(X.Ref);
119 Ref = X.Ref;
123 T *get() const { return (T *)Ref.get(); } in get()
128 bool operator==(const TypedTrackingMDRef &X) const { return Ref == X.Ref; }
129 bool operator!=(const TypedTrackingMDRef &X) const { return Ref != X.Ref; }
131 void reset() { Ref.reset(); } in reset()
[all …]
DMetadataTracking.h53 static bool track(void *Ref, Metadata &MD, Metadata &Owner) { in track() argument
54 return track(Ref, MD, &Owner); in track()
62 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() argument
63 return track(Ref, MD, &Owner); in track()
70 static void untrack(void *Ref, Metadata &MD);
83 static bool retrack(void *Ref, Metadata &MD, void *New);
94 static bool track(void *Ref, Metadata &MD, OwnerTy Owner);
/external/llvm/lib/IR/
DMetadataTracking.cpp25 bool MetadataTracking::track(void *Ref, Metadata &MD, OwnerTy Owner) { in track() argument
26 assert(Ref && "Expected live reference"); in track()
27 assert((Owner || *static_cast<Metadata **>(Ref) == &MD) && in track()
30 R->addRef(Ref, Owner); in track()
36 void MetadataTracking::untrack(void *Ref, Metadata &MD) { in untrack() argument
37 assert(Ref && "Expected live reference"); in untrack()
39 R->dropRef(Ref); in untrack()
42 bool MetadataTracking::retrack(void *Ref, Metadata &MD, void *New) { in retrack() argument
43 assert(Ref && "Expected live reference"); in retrack()
45 assert(Ref != New && "Expected change"); in retrack()
[all …]
DMetadata.cpp123 void ReplaceableMetadataImpl::addRef(void *Ref, OwnerTy Owner) { in addRef() argument
125 UseMap.insert(std::make_pair(Ref, std::make_pair(Owner, NextIndex))) in addRef()
134 void ReplaceableMetadataImpl::dropRef(void *Ref) { in dropRef() argument
135 bool WasErased = UseMap.erase(Ref); in dropRef()
140 void ReplaceableMetadataImpl::moveRef(void *Ref, void *New, in moveRef() argument
142 auto I = UseMap.find(Ref); in moveRef()
152 assert((OwnerAndIndex.first || *static_cast<Metadata **>(Ref) == &MD) && in moveRef()
180 Metadata *&Ref = *static_cast<Metadata **>(Pair.first); in replaceAllUsesWith() local
181 Ref = MD; in replaceAllUsesWith()
183 MetadataTracking::track(Ref); in replaceAllUsesWith()
[all …]
/external/eigen/Eigen/src/Core/
DRef.h17 …onditional<PlainObjectType::IsVectorAtCompileTime,InnerStride<1>,OuterStride<> >::type > class Ref; variable
91 struct traits<Ref<_PlainObjectType, _Options, _StrideType> >
188 template<typename PlainObjectType, int Options, typename StrideType> class Ref
189 : public RefBase<Ref<PlainObjectType, Options, StrideType> >
192 typedef internal::traits<Ref> Traits;
194 inline Ref(const PlainObjectBase<Derived>& expr,
198 typedef RefBase<Ref> Base;
199 EIGEN_DENSE_PUBLIC_INTERFACE(Ref)
204 inline Ref(PlainObjectBase<Derived>& expr,
211 inline Ref(const DenseBase<Derived>& expr,
[all …]
/external/eigen/test/
Dref.cpp45 typedef Ref<MatrixType> RefMat; in ref_matrix()
46 typedef Ref<DynMatrixType> RefDynMat; in ref_matrix()
47 typedef Ref<const DynMatrixType> ConstRefDynMat; in ref_matrix()
48 typedef Ref<RealDynMatrixType , 0, Stride<Dynamic,Dynamic> > RefRealMatWithStride; in ref_matrix()
95 typedef Ref<VectorType> RefMat; in ref_vector()
96 typedef Ref<DynMatrixType> RefDynMat; in ref_vector()
97 typedef Ref<const DynMatrixType> ConstRefDynMat; in ref_vector()
98 typedef Ref<RealDynMatrixType , 0, InnerStride<> > RefRealMatWithStride; in ref_vector()
99 typedef Ref<DynMatrixType , 0, InnerStride<> > RefMatWithStride; in ref_vector()
151 VERIFY( !(internal::traits<Ref<ConstPlainObjectType> >::Flags & LvalueBit) ); in check_const_correctness()
[all …]
Dnomalloc.cpp187 …typedef Eigen::Ref<const Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Flag > > Re… in test_reference() typedef
188 …typedef Eigen::Ref<const Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, TransposeFlag> > Re… in test_reference()
190 Ref r1(m); in test_reference()
191 Ref r2(m.block(rows/3, cols/4, rows/2, cols/2)); in test_reference()
196 VERIFY_RAISES_ASSERT(Ref r6(m.transpose())); in test_reference()
197 VERIFY_RAISES_ASSERT(Ref r7(Scalar(2) * m)); in test_reference()
/external/llvm/lib/Object/
DCOFFObjectFile.cpp101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const { in toSymb()
103 reinterpret_cast<const coff_symbol_type *>(Ref.p); in toSymb()
117 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const { in toSec()
118 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p); in toSec()
133 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const { in moveSymbolNext()
136 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext()
138 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
140 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext()
142 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
148 ErrorOr<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const { in getSymbolName()
[all …]
DObjectFile.cpp38 uint64_t ObjectFile::getSymbolValue(DataRefImpl Ref) const { in getSymbolValue()
39 uint32_t Flags = getSymbolFlags(Ref); in getSymbolValue()
43 return getCommonSymbolSize(Ref); in getSymbolValue()
44 return getSymbolValueImpl(Ref); in getSymbolValue()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DInstructionFactory.java44 public interface InstructionFactory<Ref extends Reference> {
50 …Instruction makeInstruction20bc(@Nonnull Opcode opcode, int verificationError, @Nonnull Ref refere… in makeInstruction20bc()
52 Instruction makeInstruction21c(@Nonnull Opcode opcode, int registerA, @Nonnull Ref reference); in makeInstruction21c()
58 …n makeInstruction22c(@Nonnull Opcode opcode, int registerA, int registerB, @Nonnull Ref reference); in makeInstruction22c()
64 Instruction makeInstruction31c(@Nonnull Opcode opcode, int registerA, @Nonnull Ref reference); in makeInstruction31c()
69 int registerF, int registerG, @Nonnull Ref reference); in makeInstruction35c()
71 @Nonnull Ref reference); in makeInstruction3rc()
/external/mesa3d/src/mesa/main/
Dstencil.c163 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI()
164 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI()
169 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in _mesa_StencilFuncSeparateATI()
214 ctx->Stencil.Ref[face] == ref) in _mesa_StencilFunc()
218 ctx->Stencil.Ref[face] = ref; in _mesa_StencilFunc()
234 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFunc()
235 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFunc()
239 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in _mesa_StencilFunc()
503 ctx->Stencil.Ref[0] = ref; in _mesa_StencilFuncSeparate()
509 ctx->Stencil.Ref[1] = ref; in _mesa_StencilFuncSeparate()
[all …]
/external/libchrome/base/mac/
Dfoundation_util.h124 BASE_EXPORT std::string TypeNameForCFType(TypeCF##Ref);
205 BASE_EXPORT TypeNS* CFToNSCast(TypeCF##Ref cf_val); \
206 BASE_EXPORT TypeCF##Ref NSToCFCast(TypeNS* ns_val); \
216 BASE_EXPORT NSMutable##name* CFToNSCast(CFMutable##name##Ref cf_val); \
217 BASE_EXPORT CFMutable##name##Ref NSToCFCast(NSMutable##name* ns_val); \
278 template<> BASE_EXPORT TypeCF##Ref \
279 CFCast<TypeCF##Ref>(const CFTypeRef& cf_val);\
281 template<> BASE_EXPORT TypeCF##Ref \
282 CFCastStrict<TypeCF##Ref>(const CFTypeRef& cf_val);
Dfoundation_util.mm190 std::string TypeNameForCFType(TypeCF##Ref) { \
260 TypeNS* CFToNSCast(TypeCF##Ref cf_val) { \
267 TypeCF##Ref NSToCFCast(TypeNS* ns_val) { \
268 TypeCF##Ref cf_val = reinterpret_cast<TypeCF##Ref>(ns_val); \
276 NSMutable##name* CFToNSCast(CFMutable##name##Ref cf_val) { \
282 CFMutable##name##Ref NSToCFCast(NSMutable##name* ns_val) { \
283 CFMutable##name##Ref cf_val = \
284 reinterpret_cast<CFMutable##name##Ref>(ns_val); \
336 template<> TypeCF##Ref \
337 CFCast<TypeCF##Ref>(const CFTypeRef& cf_val) { \
[all …]
/external/regex-re2/re2/testing/
Dregexp_test.cc22 CHECK_EQ(re->Ref(), 1); in TEST()
34 CHECK_EQ(x->Ref(), 1 + v.size()) << x->Ref(); in TEST()
38 CHECK_EQ(x->Ref(), 1) << x->Ref(); in TEST()
/external/llvm/lib/Support/
DRegex.cpp154 StringRef Ref = Repl.slice(0, Repl.find_first_not_of("0123456789")); in sub() local
155 Repl = Repl.substr(Ref.size()); in sub()
158 if (!Ref.getAsInteger(10, RefValue) && in sub()
162 *Error = ("invalid backreference string '" + Twine(Ref) + "'").str(); in sub()
/external/eigen/failtest/
Dref_3.cpp6 void call_ref(Ref<VectorXf> a) { } in call_ref()
8 void call_ref(const Ref<const VectorXf> &a) { } in call_ref()
/external/eigen/Eigen/src/SparseLU/
DSparseLUImpl.h26 typedef Ref<Matrix<Scalar,Dynamic,1> > BlockScalarVector;
27 typedef Ref<Matrix<Index,Dynamic,1> > BlockIndexVector;
45Ref<IndexVector> repfnz_col, IndexVector& xprune, Ref<IndexVector> marker, IndexVector& parent,
/external/clang/lib/CodeGen/
DCGCXX.cpp152 auto *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); in TryEmitDefinitionAsAlias() local
153 llvm::Constant *Aliasee = Ref; in TryEmitDefinitionAsAlias()
154 if (Ref->getType() != AliasType) in TryEmitDefinitionAsAlias()
155 Aliasee = llvm::ConstantExpr::getBitCast(Ref, AliasType); in TryEmitDefinitionAsAlias()
185 if (Ref->isDeclaration()) in TryEmitDefinitionAsAlias()
/external/llvm/test/Integer/
Dconstexpr_bt.ll61 @S1ptr = global %SType** @S1 ;; Ref. to global S1
62 @S2 = global %SType* @S2c ;; Ref. to constant S2
63 @S3 = global %SAType* @S3c ;; Ref. to constant S3
70 @S1fld1bptr = global float** @S1fld1b ;; Ref. to previous pointer
/external/llvm/test/Feature/
Dconstexpr.ll59 @S1ptr = global %SType** @S1 ;; Ref. to global S1
60 @S2 = global %SType* @S2c ;; Ref. to constant S2
61 @S3 = global %SAType* @S3c ;; Ref. to constant S3
68 @S1fld1bptr = global float** @S1fld1b ;; Ref. to previous pointer
/external/llvm/lib/Target/Hexagon/
DBitTracker.h110 Ref // Bit value same as the one described in RefI. enumerator
146 BitValue(unsigned Reg, uint16_t Pos) : Type(Ref), RefI(Reg, Pos) {} in BitValue()
151 if (Type == Ref && !(RefI == V.RefI))
180 if (Type == Ref && RefI == Self) // Bottom.meet(V) = Bottom (i.e. This) in meet()
196 Type = Ref; in meet()
221 if (V.Type != Ref) in ref()
/external/llvm/test/Analysis/BasicAA/
Dcs-cs.ll25 ; CHECK: Just Ref: Ptr: i8* %p <-> %a = call <8 x i16> @llvm.arm.neon.vld1.v8i16.p0i8(i8* …
29 ; CHECK: Just Ref: Ptr: i8* %p <-> %b = call <8 x i16> @llvm.arm.neon.vld1.v8i16.p0i8(i8* …
64 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %P, i8* %…
66 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %P, i8* %…
83 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %P, i8* %…
86 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %R, i8* %…
104 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %P, i8* %…
107 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %R, i8* %…
125 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %P, i8* %…
128 ; CHECK: Just Ref: Ptr: i8* %Q <-> tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %R, i8* %…
[all …]
/external/llvm/bindings/ocaml/transforms/passmgr_builder/
Dpassmgr_builder_ocaml.c39 static value alloc_pmbuilder(LLVMPassManagerBuilderRef Ref) { in alloc_pmbuilder() argument
42 PMBuilder_val(Val) = Ref; in alloc_pmbuilder()
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp256 StringRef Ref = String.toStringRef(Data); in CopyString() local
260 char *Mem = (char *)Allocate(Ref.size() + 1, 1); in CopyString()
261 std::copy(Ref.begin(), Ref.end(), Mem); in CopyString()
262 Mem[Ref.size()] = 0; in CopyString()
/external/eigen/doc/
DFunctionsTakingEigenTypes.dox82 … both a MatrixXf or a block of a MatrixXf. This exactly the purpose of the Ref class. Here is a si…
92 … by Ref<MatrixXf>. However, in the last call, we have a generic expression that will be automatica…
94 A Ref object can also be writable. Here is an example of a function computing the covariance matrix…
96 void cov(const Ref<const MatrixXf> x, const Ref<const MatrixXf> y, Ref<MatrixXf> C)
110Ref<> class has two other optional template arguments allowing to control the kind of memory layou…
114 Without using template functions, and without the Ref class, a naive implementation of the previous…

123456