Home
last modified time | relevance | path

Searched refs:Mem (Results 1 – 25 of 77) sorted by relevance

1234

/external/llvm/lib/Target/X86/AsmParser/
DX86Operand.h63 struct MemOp Mem; member
106 return Mem.Disp; in getMemDisp()
110 return Mem.SegReg; in getMemSegReg()
114 return Mem.BaseReg; in getMemBaseReg()
118 return Mem.IndexReg; in getMemIndexReg()
122 return Mem.Scale; in getMemScale()
126 return Mem.ModeSize; in getMemModeSize()
207 return Kind == Memory && Mem.Size == 0; in isMemUnsized()
210 return Kind == Memory && (!Mem.Size || Mem.Size == 8); in isMem8()
213 return Kind == Memory && (!Mem.Size || Mem.Size == 16); in isMem16()
[all …]
DX86AsmParser.cpp845 unsigned diReg = Op1.Mem.BaseReg; in doSrcDstMatch()
846 unsigned siReg = Op2.Mem.BaseReg; in doSrcDstMatch()
2170 if (Op.isMem() && Op.Mem.SegReg == 0 && in ParseInstruction()
2171 isa<MCConstantExpr>(Op.Mem.Disp) && in ParseInstruction()
2172 cast<MCConstantExpr>(Op.Mem.Disp)->getValue() == 0 && in ParseInstruction()
2173 Op.Mem.BaseReg == MatchRegisterName("dx") && Op.Mem.IndexReg == 0) { in ParseInstruction()
2175 Operands.back() = X86Operand::CreateReg(Op.Mem.BaseReg, Loc, Loc); in ParseInstruction()
2182 if (Op.isMem() && Op.Mem.SegReg == 0 && in ParseInstruction()
2183 isa<MCConstantExpr>(Op.Mem.Disp) && in ParseInstruction()
2184 cast<MCConstantExpr>(Op.Mem.Disp)->getValue() == 0 && in ParseInstruction()
[all …]
/external/clang/lib/AST/
DStmt.cpp315 void *Mem = C.Allocate(sizeof(AttributedStmt) + sizeof(Attr *) * Attrs.size(), in Create() local
317 return new (Mem) AttributedStmt(Loc, Attrs, SubStmt); in Create()
323 void *Mem = C.Allocate(sizeof(AttributedStmt) + sizeof(Attr *) * NumAttrs, in CreateEmpty() local
325 return new (Mem) AttributedStmt(EmptyShell(), NumAttrs); in CreateEmpty()
800 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in Create() local
801 return new (Mem) ObjCAtTryStmt(atTryLoc, atTryStmt, CatchStmts, NumCatchStmts, in Create()
810 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in CreateEmpty() local
811 return new (Mem) ObjCAtTryStmt(EmptyShell(), NumCatchStmts, HasFinally); in CreateEmpty()
827 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create() local
828 return new (Mem) CXXTryStmt(tryLoc, tryBlock, handlers); in Create()
[all …]
DDeclGroup.cpp25 void* Mem = C.Allocate(Size, llvm::AlignOf<DeclGroup>::Alignment); in Create() local
26 new (Mem) DeclGroup(NumDecls, Decls); in Create()
27 return static_cast<DeclGroup*>(Mem); in Create()
DExprCXX.cpp298 void *Mem = C.Allocate(sizeof(UnresolvedLookupExpr) + in Create() local
300 return new (Mem) UnresolvedLookupExpr(C, NamingClass, QualifierLoc, in Create()
314 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedLookupExpr>()); in CreateEmpty() local
315 UnresolvedLookupExpr *E = new (Mem) UnresolvedLookupExpr(EmptyShell()); in CreateEmpty()
457 void *Mem = C.Allocate(size); in Create() local
458 return new (Mem) DependentScopeDeclRefExpr(C.DependentTy, QualifierLoc, in Create()
469 void *Mem = C.Allocate(size); in CreateEmpty() local
471 = new (Mem) DependentScopeDeclRefExpr(QualType(), NestedNameSpecifierLoc(), in CreateEmpty()
767 void *Mem = C.Allocate(sizeof(CXXDefaultArgExpr) + sizeof(Stmt *)); in Create() local
768 return new (Mem) CXXDefaultArgExpr(CXXDefaultArgExprClass, Loc, Param, in Create()
[all …]
DExpr.cpp407 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in Create() local
408 return new (Mem) DeclRefExpr(Context, QualifierLoc, TemplateKWLoc, D, in Create()
426 void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); in CreateEmpty() local
427 return new (Mem) DeclRefExpr(EmptyShell()); in CreateEmpty()
841 void *Mem = C.Allocate(sizeof(StringLiteral)+ in Create() local
844 StringLiteral *SL = new (Mem) StringLiteral(Ty); in Create()
859 void *Mem = C.Allocate(sizeof(StringLiteral)+ in CreateEmpty() local
862 StringLiteral *SL = new (Mem) StringLiteral(QualType()); in CreateEmpty()
1291 void *Mem = C.Allocate(sizeof(OffsetOfExpr) + in Create() local
1295 return new (Mem) OffsetOfExpr(C, type, OperatorLoc, tsi, comps, exprs, in Create()
[all …]
DTemplateBase.cpp81 void *Mem = Ctx.Allocate(NumWords * sizeof(uint64_t)); in TemplateArgument() local
82 std::memcpy(Mem, Value.getRawData(), NumWords * sizeof(uint64_t)); in TemplateArgument()
83 Integer.pVal = static_cast<uint64_t *>(Mem); in TemplateArgument()
528 void *Mem = C.Allocate(size, llvm::alignOf<ASTTemplateArgumentListInfo>()); in Create() local
529 ASTTemplateArgumentListInfo *TAI = new (Mem) ASTTemplateArgumentListInfo(); in Create()
/external/llvm/unittests/Bitcode/
DBitReaderTest.cpp51 SmallString<1024> &Mem, in getLazyModuleFromAssembly() argument
53 writeModuleToBuffer(parseAssembly(Assembly), Mem); in getLazyModuleFromAssembly()
55 MemoryBuffer::getMemBuffer(Mem.str(), "test", false); in getLazyModuleFromAssembly()
62 SmallString<1024> Mem; in TEST() local
66 Context, Mem, "define internal i32 @func() {\n" in TEST()
86 SmallString<1024> Mem; in TEST() local
90 Context, Mem, "@table = constant i8* blockaddress(@func, %bb)\n" in TEST()
104 SmallString<1024> Mem; in TEST() local
108 Context, Mem, "define i8* @before() {\n" in TEST()
136 SmallString<1024> Mem; in TEST() local
[all …]
/external/llvm/unittests/CodeGen/
DDIEHashTest.cpp164 auto Mem = make_unique<DIE>(dwarf::DW_TAG_member); in TEST() local
166 Mem->addValue(dwarf::DW_AT_name, dwarf::DW_FORM_strp, &MemStr); in TEST()
168 Mem->addValue(dwarf::DW_AT_type, dwarf::DW_FORM_ref4, &FooRef); in TEST()
171 Foo.addChild(std::move(Mem)); in TEST()
186 auto Mem = make_unique<DIE>(dwarf::DW_TAG_member); in TEST() local
188 Mem->addValue(dwarf::DW_AT_name, dwarf::DW_FORM_strp, &MemStr); in TEST()
190 Mem->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1, &Zero); in TEST()
198 Mem->addValue(dwarf::DW_AT_type, dwarf::DW_FORM_ref4, &FooPtrRef); in TEST()
200 Foo.addChild(std::move(Mem)); in TEST()
215 auto Mem = make_unique<DIE>(dwarf::DW_TAG_member); in TEST() local
[all …]
/external/llvm/tools/lli/
DRemoteTarget.cpp34 sys::MemoryBlock Mem = sys::Memory::AllocateRWX(Size, Prev, &ErrorMsg); in allocateSpace() local
35 if (Mem.base() == nullptr) in allocateSpace()
37 if ((uintptr_t)Mem.base() % Alignment) { in allocateSpace()
41 Address = reinterpret_cast<uint64_t>(Mem.base()); in allocateSpace()
42 Allocations.push_back(Mem); in allocateSpace()
53 sys::MemoryBlock Mem((void*)Address, Size); in loadCode() local
54 sys::Memory::setExecutable(Mem, &ErrorMsg); in loadCode()
/external/llvm/include/llvm/Support/
DOptions.h49 template <typename ValT, typename Base, ValT(Base::*Mem)> class OptionKey {
54 template <typename ValT, typename Base, ValT(Base::*Mem)>
55 char OptionKey<ValT, Base, Mem>::ID = 0;
95 template <typename ValT, typename Base, ValT(Base::*Mem)>
100 instance().addOption(&detail::OptionKey<ValT, Base, Mem>::ID, Option); in registerOption()
111 template <typename ValT, typename Base, ValT(Base::*Mem)> ValT get() const { in get()
112 auto It = Options.find(&detail::OptionKey<ValT, Base, Mem>::ID); in get()
/external/valgrind/none/tests/amd64/
DredundantRexW.c24 Mem; typedef
50 void pp_Mem ( char* who, Mem* mem ) { in pp_Mem()
72 void xor_Mem ( Mem* src, Mem* dst ) { in xor_Mem()
78 void setup_regs_mem ( XMMRegs* regs, Mem* mem ) { in setup_regs_mem()
91 void before_test ( XMMRegs* regs, Mem* mem ) { in before_test()
95 void after_test ( char* who, XMMRegs* regs, Mem* mem ) { in after_test()
97 Mem mdiff; in after_test()
170 Mem* mem; in main()
172 mem = memalign16(sizeof(Mem) + 16); in main()
/external/clang/test/CodeGen/
Dempty-union-init.c4 struct Mem { struct
9 struct Mem *columnMem(){ in columnMem() argument
10 static const struct Mem nullMem = { {} }; in columnMem()
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmsmd5.c264 cmsUInt8Number* Mem = NULL; in cmsMD5computeID() local
285 Mem = (cmsUInt8Number*) _cmsMalloc(ContextID, BytesNeeded); in cmsMD5computeID()
286 if (Mem == NULL) goto Error; in cmsMD5computeID()
289 if (!cmsSaveProfileToMem(hProfile, Mem, &BytesNeeded)) goto Error; in cmsMD5computeID()
296 MD5add(MD5, Mem, BytesNeeded); in cmsMD5computeID()
299 _cmsFree(ContextID, Mem); in cmsMD5computeID()
312 if (Mem != NULL) _cmsFree(ContextID, Mem); in cmsMD5computeID()
320 cmsUInt8Number* Mem; in cmsMD5computeIDExt() local
325 Mem = (cmsUInt8Number*)_cmsMalloc(NULL,size); in cmsMD5computeIDExt()
326 memmove(Mem,buf,size); in cmsMD5computeIDExt()
[all …]
/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp113 MemOp Mem; member
165 Op->Mem.RegKind = RegKind; in createMem()
166 Op->Mem.Base = Base; in createMem()
167 Op->Mem.Index = Index; in createMem()
168 Op->Mem.Disp = Disp; in createMem()
169 Op->Mem.Length = Length; in createMem()
231 Mem.RegKind == RegKind && in isMem()
232 (MemKind == BDXMem || !Mem.Index) && in isMem()
233 (MemKind == BDLMem) == (Mem.Length != nullptr)); in isMem()
236 return isMem(RegKind, MemKind) && inRange(Mem.Disp, 0, 0xfff); in isMemDisp12()
[all …]
/external/llvm/lib/Support/
DMemoryBuffer.cpp75 char *Mem = static_cast<char *>(operator new(N + NameRef.size() + 1)); in operator new() local
76 CopyStringRef(Mem + N, NameRef); in operator new()
77 return Mem; in operator new()
139 char *Mem = static_cast<char*>(operator new(RealLen, std::nothrow)); in getNewUninitMemBuffer() local
140 if (!Mem) in getNewUninitMemBuffer()
144 CopyStringRef(Mem + sizeof(MemoryBufferMem), NameRef); in getNewUninitMemBuffer()
147 char *Buf = Mem + AlignedStringLen; in getNewUninitMemBuffer()
150 auto *Ret = new (Mem) MemoryBufferMem(StringRef(Buf, Size), true); in getNewUninitMemBuffer()
/external/llvm/test/Transforms/GVN/
D2009-01-22-SortInvalidation.ll30 …*, void (%struct.sqlite3_context*, i32, %struct.Mem**)*, void (%struct.sqlite3_context*, i32, %str…
36 …%struct.Mem = type { %struct.CountCtx, double, %struct.sqlite3*, i8*, i32, i16, i8, i8, void (i8*)…
54Mem**, %struct.Mem*, i32, %struct.Cursor**, i32, %struct.Mem*, i8**, i32, i32, i32, %struct.Mem*, …
60 …qlite3*, i32, i8*)*, void (i8*, %struct.sqlite3*, i32, i8*)*, i8*, %struct.Mem*, i8*, i8*, %struct…
62 …%struct.sqlite3_context = type { %struct.FuncDef*, %struct.VdbeFunc*, %struct.Mem, %struct.Mem*, i…
68Mem**)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sq…
/external/llvm/test/CodeGen/X86/
D2009-04-29-RegAllocAssert.ll33 …*, void (%struct.sqlite3_context*, i32, %struct.Mem**)*, void (%struct.sqlite3_context*, i32, %str…
39 …%struct.Mem = type { %struct.CountCtx, double, %struct.sqlite3*, i8*, i32, i16, i8, i8, void (i8*)…
53Mem**, %struct.Mem*, i32, %struct.Cursor**, i32, %struct.Mem*, i8**, i32, i32, i32, %struct.Mem*, …
58 …qlite3*, i32, i8*)*, void (i8*, %struct.sqlite3*, i32, i8*)*, i8*, %struct.Mem*, i8*, i8*, %2, i32…
60 …%struct.sqlite3_context = type { %struct.FuncDef*, %struct.VdbeFunc*, %struct.Mem, %struct.Mem*, i…
66Mem**)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sq…
/external/clang/lib/Sema/
DTypeLocBuilder.h123 void *Mem = Context.Allocate(FullDataSize); in getTypeLocInContext() local
124 memcpy(Mem, &Buffer[Index], FullDataSize); in getTypeLocInContext()
125 return TypeLoc(T, Mem); in getTypeLocInContext()
DCodeCompleteConsumer.cpp260 char *Mem = (char *)Allocate(Ref.size() + 1, 1); in CopyString() local
261 std::copy(Ref.begin(), Ref.end(), Mem); in CopyString()
262 Mem[Ref.size()] = 0; in CopyString()
263 return Mem; in CopyString()
329 void *Mem = getAllocator().Allocate( in TakeString() local
334 = new (Mem) CodeCompletionString(Chunks.data(), Chunks.size(), in TakeString()
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp176 struct MemOp Mem; member
215 return Mem.Base; in getMemBase()
220 return Mem.OffsetReg; in getMemOffsetReg()
225 return Mem.Off; in getMemOff()
356 Op->Mem.Base = Base; in MorphToMEMrr()
357 Op->Mem.OffsetReg = offsetReg; in MorphToMEMrr()
358 Op->Mem.Off = nullptr; in MorphToMEMrr()
365 Op->Mem.Base = Base; in CreateMEMri()
366 Op->Mem.OffsetReg = 0; in CreateMEMri()
367 Op->Mem.Off = Off; in CreateMEMri()
[all …]
/external/clang/include/clang/AST/
DCommentSema.h84 T *Mem = Allocator.Allocate<T>(Size); in copyArray() local
85 std::uninitialized_copy(Source.begin(), Source.end(), Mem); in copyArray()
86 return llvm::makeArrayRef(Mem, Size); in copyArray()
/external/llvm/include/llvm/IR/
DLLVMContext.h173 template <typename ValT, typename Base, ValT(Base::*Mem)>
175 return OptionRegistry::instance().template get<ValT, Base, Mem>(); in getOption()
/external/clang/include/clang/Basic/
DIdentifierTable.h468 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in get() local
469 II = new (Mem) IdentifierInfo(); in get()
499 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in getOwn() local
500 II = new (Mem) IdentifierInfo(); in getOwn()
/external/clang/include/clang/Sema/
DDeclSpec.h1369 char Mem[sizeof(CXXScopeSpec)]; member
1372 return *reinterpret_cast<CXXScopeSpec*>(ScopeMem.Mem); in Scope()
1375 return *reinterpret_cast<const CXXScopeSpec*>(ScopeMem.Mem); in Scope()
1389 MemberPointerTypeInfo Mem; member
1399 case DeclaratorChunk::MemberPointer: return Mem.destroy(); in destroy()
1506 I.Mem.TypeQuals = TypeQuals; in getMemberPointer()
1507 I.Mem.AttrList = nullptr; in getMemberPointer()
1508 new (I.Mem.ScopeMem.Mem) CXXScopeSpec(SS); in getMemberPointer()

1234