/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SILoadStoreOptimizer.cpp | 113 static bool offsetsCanBeCombined(CombineInfo &CI); 115 bool findMatchingInst(CombineInfo &CI); 119 MachineBasicBlock::iterator mergeRead2Pair(CombineInfo &CI); 123 MachineBasicBlock::iterator mergeWrite2Pair(CombineInfo &CI); 124 MachineBasicBlock::iterator mergeSBufferLoadImmPair(CombineInfo &CI); 125 MachineBasicBlock::iterator mergeBufferLoadPair(CombineInfo &CI); 128 MachineBasicBlock::iterator mergeBufferStorePair(CombineInfo &CI); 247 bool SILoadStoreOptimizer::offsetsCanBeCombined(CombineInfo &CI) { in offsetsCanBeCombined() argument 250 if (CI.Offset0 == CI.Offset1) in offsetsCanBeCombined() 254 if ((CI.Offset0 % CI.EltSize != 0) || (CI.Offset1 % CI.EltSize != 0)) in offsetsCanBeCombined() [all …]
|
/external/libnl/lib/route/link/ |
D | can.c | 74 struct can_info *ci; in can_alloc() local 76 ci = calloc(1, sizeof(*ci)); in can_alloc() 77 if (!ci) in can_alloc() 80 link->l_info = ci; in can_alloc() 89 struct can_info *ci; in can_parse() local 100 ci = link->l_info; in can_parse() 103 ci->ci_state = nla_get_u32(tb[IFLA_CAN_STATE]); in can_parse() 104 ci->ci_mask |= CAN_HAS_STATE; in can_parse() 108 ci->ci_restart = nla_get_u32(tb[IFLA_CAN_RESTART]); in can_parse() 109 ci->ci_mask |= CAN_HAS_RESTART; in can_parse() [all …]
|
/external/clang/lib/Frontend/ |
D | FrontendAction.cpp | 138 FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, in CreateWrappedASTConsumer() argument 140 std::unique_ptr<ASTConsumer> Consumer = CreateASTConsumer(CI, InFile); in CreateWrappedASTConsumer() 160 for (size_t i = 0, e = CI.getFrontendOpts().AddPluginActions.size(); in CreateWrappedASTConsumer() 162 if (it->getName() == CI.getFrontendOpts().AddPluginActions[i]) { in CreateWrappedASTConsumer() 170 P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs[it->getName()])) { in CreateWrappedASTConsumer() 171 std::unique_ptr<ASTConsumer> PluginConsumer = P->CreateASTConsumer(CI, InFile); in CreateWrappedASTConsumer() 189 bool FrontendAction::BeginSourceFile(CompilerInstance &CI, in BeginSourceFile() argument 194 setCompilerInstance(&CI); in BeginSourceFile() 198 if (!BeginInvocation(CI)) in BeginSourceFile() 209 IntrusiveRefCntPtr<DiagnosticsEngine> Diags(&CI.getDiagnostics()); in BeginSourceFile() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 56 static bool isCallingConvCCompatible(CallInst *CI) { in isCallingConvCCompatible() argument 57 switch(CI->getCallingConv()) { in isCallingConvCCompatible() 68 if (Triple(CI->getModule()->getTargetTriple()).isiOS()) in isCallingConvCCompatible() 71 auto *FuncTy = CI->getFunctionType(); in isCallingConvCCompatible() 100 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() argument 101 return any_of(CI->operands(), [](const Use &OI) { in callHasFloatingPointArgument() 106 static Value *convertStrToNumber(CallInst *CI, StringRef &Str, int64_t Base) { in convertStrToNumber() argument 125 if (!isIntN(CI->getType()->getPrimitiveSizeInBits(), Result)) in convertStrToNumber() 128 return ConstantInt::get(CI->getType(), Result); in convertStrToNumber() 131 static bool isLocallyOpenedFile(Value *File, CallInst *CI, IRBuilder<> &B, in isLocallyOpenedFile() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | SimplifyLibCalls.h | 52 Value *optimizeCall(CallInst *CI); 55 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B); 56 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B); 57 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B); 60 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func); 61 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func); 63 /// Checks whether the call \p CI to a fortified libcall is foldable 65 bool isFortifiedCallFoldable(CallInst *CI, unsigned ObjSizeOp, 103 Value *optimizeCall(CallInst *CI); 107 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B); [all …]
|
/external/tremolo/Tremolo/ |
D | treminfo.c | 125 codec_setup_info *ci = (codec_setup_info *)vi->codec_setup; in vorbis_info_blocksize() local 126 return ci ? ci->blocksizes[zo] : -1; in vorbis_info_blocksize() 136 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in vorbis_info_clear() local 139 if(ci){ in vorbis_info_clear() 141 if(ci->mode_param)_ogg_free(ci->mode_param); in vorbis_info_clear() 143 if(ci->map_param){ in vorbis_info_clear() 144 for(i=0;i<ci->maps;i++) /* unpack does the range checking */ in vorbis_info_clear() 145 mapping_clear_info(ci->map_param+i); in vorbis_info_clear() 146 _ogg_free(ci->map_param); in vorbis_info_clear() 149 if(ci->floor_param){ in vorbis_info_clear() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 85 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() argument 86 return std::any_of(CI->op_begin(), CI->op_end(), [](const Use &OI) { in callHasFloatingPointArgument() 110 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat() argument 112 Value *Dst = CI->getArgOperand(0); in optimizeStrCat() 113 Value *Src = CI->getArgOperand(1); in optimizeStrCat() 149 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat() argument 151 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat() 152 Value *Src = CI->getArgOperand(1); in optimizeStrNCat() 156 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCat() 182 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr() argument [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SimplifyLibCalls.h | 51 Value *optimizeCall(CallInst *CI); 54 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B); 55 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B); 56 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B); 59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func); 60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func); 62 /// \brief Checks whether the call \p CI to a fortified libcall is foldable 64 bool isFortifiedCallFoldable(CallInst *CI, unsigned ObjSizeOp, 100 Value *optimizeCall(CallInst *CI); 104 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument 70 Module *M = CI->getModule(); in ReplaceCallWith() 78 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith() 81 NewCI->setName(CI->getName()); in ReplaceCallWith() 82 if (!CI->use_empty()) in ReplaceCallWith() 83 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 314 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, in ReplaceFPIntrinsicWithCall() argument 317 CallSite CS(CI); in ReplaceFPIntrinsicWithCall() 318 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 321 ReplaceCallWith(Fname, CI, CS.arg_begin(), CS.arg_end(), in ReplaceFPIntrinsicWithCall() [all …]
|
/external/spirv-llvm/lib/SPIRV/ |
D | OCL20ToSPIRV.cpp | 84 virtual void visitCallInst(CallInst &CI); 94 void visitCallBarrier(CallInst *CI); 103 void visitCallConvert(CallInst *CI, StringRef MangledName, 111 void visitCallAsyncWorkGroupCopy(CallInst *CI, 115 void transBuiltin(CallInst *CI, OCLBuiltinTransInfo &Info); 123 void transMemoryBarrier(CallInst *CI, AtomicWorkItemFenceLiterals); 127 void visitCallAllAny(spv::Op OC, CallInst *CI); 132 void transAtomicBuiltin(CallInst *CI, OCLBuiltinTransInfo &Info); 137 void visitCallAtomicWorkItemFence(CallInst *CI); 150 CallInst *visitCallAtomicCmpXchg(CallInst *CI, [all …]
|
D | SPIRVToOCL20.cpp | 73 void visitCallInst(CallInst &CI); 79 void visitCastInst(CastInst &CI); 85 void visitCallSPRIVImageQuerySize(CallInst *CI); 90 void visitCallSPIRVAtomicBuiltin(CallInst *CI, Op OC); 107 void visitCallSPIRVGroupBuiltin(CallInst *CI, Op OC); 112 void visitCallSPIRVMemoryBarrier(CallInst *CI); 115 void visitCallSPIRVPipeBuiltin(CallInst *CI, Op OC); 119 void visitCallSPIRVBuiltin(CallInst *CI, Op OC); 126 /// Assuming the first argument of \param CI is a constant integer for 128 std::string getGroupBuiltinPrefix(CallInst *CI); [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument 70 Module *M = CI->getParent()->getParent()->getParent(); in ReplaceCallWith() 78 IRBuilder<> Builder(CI->getParent(), CI); in ReplaceCallWith() 81 NewCI->setName(CI->getName()); in ReplaceCallWith() 82 if (!CI->use_empty()) in ReplaceCallWith() 83 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 317 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, in ReplaceFPIntrinsicWithCall() argument 320 CallSite CS(CI); in ReplaceFPIntrinsicWithCall() 321 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 324 ReplaceCallWith(Fname, CI, CS.arg_begin(), CS.arg_end(), in ReplaceFPIntrinsicWithCall() [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument 70 Module *M = CI->getModule(); in ReplaceCallWith() 78 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith() 81 NewCI->setName(CI->getName()); in ReplaceCallWith() 82 if (!CI->use_empty()) in ReplaceCallWith() 83 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 317 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, in ReplaceFPIntrinsicWithCall() argument 320 CallSite CS(CI); in ReplaceFPIntrinsicWithCall() 321 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 324 ReplaceCallWith(Fname, CI, CS.arg_begin(), CS.arg_end(), in ReplaceFPIntrinsicWithCall() [all …]
|
/external/zlib/src/contrib/minizip/ |
D | zip.c | 171 curfile64_info ci; /* info on the file curretly writing */ member 876 ziinit.ci.stream_initialised = 0; in zipOpen3() 969 if(zi->ci.zip64) in Write_LocalFileHeader() 976 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->ci.flag,2); in Write_LocalFileHeader() 979 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->ci.method,2); in Write_LocalFileHeader() 982 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->ci.dosDate,4); in Write_LocalFileHeader() 989 if(zi->ci.zip64) in Write_LocalFileHeader() 996 if(zi->ci.zip64) in Write_LocalFileHeader() 1005 if(zi->ci.zip64) in Write_LocalFileHeader() 1026 if ((err==ZIP_OK) && (zi->ci.zip64)) in Write_LocalFileHeader() [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | fceil64.ll | 2 ; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=CI -che… 3 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=CI -check… 13 ; CI: v_ceil_f64_e32 39 ; CI: v_ceil_f64_e32 40 ; CI: v_ceil_f64_e32 48 ; FIXME-CI: v_ceil_f64_e32 49 ; FIXME-CI: v_ceil_f64_e32 50 ; FIXME-CI: v_ceil_f64_e32 58 ; CI: v_ceil_f64_e32 59 ; CI: v_ceil_f64_e32 [all …]
|
D | ffloor.f64.ll | 2 …verify-machineinstrs -enable-unsafe-fp-math < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 3 …verify-machineinstrs -enable-unsafe-fp-math < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 14 ; CI: v_floor_f64_e32 29 ; CI: v_floor_f64_e64 45 ; CI: v_floor_f64_e64 62 ; CI: v_floor_f64_e32 63 ; CI: v_floor_f64_e32 71 ; CI: v_floor_f64_e32 72 ; CI: v_floor_f64_e32 73 ; CI: v_floor_f64_e32 [all …]
|
D | ftrunc.f64.ll | 2 ; RUN: llc -march=amdgcn -mcpu=bonaire < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 3 ; RUN: llc -march=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 13 ; CI: v_trunc_f64 24 ; CI: v_trunc_f64_e32 46 ; CI: v_trunc_f64_e32 47 ; CI: v_trunc_f64_e32 55 ; FIXME-CI: v_trunc_f64_e32 56 ; FIXME-CI: v_trunc_f64_e32 57 ; FIXME-CI: v_trunc_f64_e32 65 ; CI: v_trunc_f64_e32 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/ |
D | fceil64.ll | 2 …machineinstrs < %s | FileCheck -allow-deprecated-dag-overlap -check-prefix=CI -check-prefix=FUNC %s 3 …machineinstrs < %s | FileCheck -allow-deprecated-dag-overlap -check-prefix=CI -check-prefix=FUNC %s 13 ; CI: v_ceil_f64_e32 41 ; CI: v_ceil_f64_e32 42 ; CI: v_ceil_f64_e32 50 ; FIXME-CI: v_ceil_f64_e32 51 ; FIXME-CI: v_ceil_f64_e32 52 ; FIXME-CI: v_ceil_f64_e32 60 ; CI: v_ceil_f64_e32 61 ; CI: v_ceil_f64_e32 [all …]
|
D | ffloor.f64.ll | 2 …verify-machineinstrs -enable-unsafe-fp-math < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 3 …verify-machineinstrs -enable-unsafe-fp-math < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 14 ; CI: v_floor_f64_e32 29 ; CI: v_floor_f64_e64 45 ; CI: v_floor_f64_e64 62 ; CI: v_floor_f64_e32 63 ; CI: v_floor_f64_e32 71 ; CI: v_floor_f64_e32 72 ; CI: v_floor_f64_e32 73 ; CI: v_floor_f64_e32 [all …]
|
D | ftrunc.f64.ll | 2 …bal-loads=false -march=amdgcn -mcpu=bonaire < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 3 …lobal-loads=false -march=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s 13 ; CI: v_trunc_f64 24 ; CI: v_trunc_f64_e32 46 ; CI: v_trunc_f64_e32 47 ; CI: v_trunc_f64_e32 55 ; FIXME-CI: v_trunc_f64_e32 56 ; FIXME-CI: v_trunc_f64_e32 57 ; FIXME-CI: v_trunc_f64_e32 65 ; CI: v_trunc_f64_e32 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 942 static Value *upgradeAbs(IRBuilder<> &Builder, CallInst &CI) { in upgradeAbs() argument 943 Value *Op0 = CI.getArgOperand(0); in upgradeAbs() 950 if (CI.getNumArgOperands() == 3) in upgradeAbs() 951 Res = EmitX86Select(Builder,CI.getArgOperand(2), Res, CI.getArgOperand(1)); in upgradeAbs() 956 static Value *upgradeIntMinMax(IRBuilder<> &Builder, CallInst &CI, in upgradeIntMinMax() argument 958 Value *Op0 = CI.getArgOperand(0); in upgradeIntMinMax() 959 Value *Op1 = CI.getArgOperand(1); in upgradeIntMinMax() 963 if (CI.getNumArgOperands() == 4) in upgradeIntMinMax() 964 Res = EmitX86Select(Builder, CI.getArgOperand(3), Res, CI.getArgOperand(2)); in upgradeIntMinMax() 969 static Value *upgradePMULDQ(IRBuilder<> &Builder, CallInst &CI, bool IsSigned) { in upgradePMULDQ() argument [all …]
|
/external/lua/src/ |
D | ldebug.c | 38 #define ci_func(ci) (clLvalue((ci)->func)) argument 41 static const char *funcnamefromcode (lua_State *L, CallInfo *ci, 45 static int currentpc (CallInfo *ci) { in currentpc() argument 46 lua_assert(isLua(ci)); in currentpc() 47 return pcRel(ci->u.l.savedpc, ci_func(ci)->p); in currentpc() 51 static int currentline (CallInfo *ci) { in currentline() argument 52 return getfuncline(ci_func(ci)->p, currentpc(ci)); in currentline() 64 CallInfo *ci = L->ci; /* get function that yielded */ in swapextra() local 65 StkId temp = ci->func; /* exchange its 'func' and 'extra' values */ in swapextra() 66 ci->func = restorestack(L, ci->extra); in swapextra() [all …]
|
D | ldo.c | 125 if (L->ci->top < L->top) in luaD_throw() 126 L->ci->top = L->top; /* pushing msg. can break this invariant */ in luaD_throw() 159 CallInfo *ci; in correctstack() local 164 for (ci = L->ci; ci != NULL; ci = ci->previous) { in correctstack() 165 ci->top = (ci->top - oldstack) + L->stack; in correctstack() 166 ci->func = (ci->func - oldstack) + L->stack; in correctstack() 167 if (isLua(ci)) in correctstack() 168 ci->u.l.base = (ci->u.l.base - oldstack) + L->stack; in correctstack() 211 CallInfo *ci; in stackinuse() local 213 for (ci = L->ci; ci != NULL; ci = ci->previous) { in stackinuse() [all …]
|
/external/libopus/src/ |
D | opus_compare.c | 73 int ci; in read_pcm16() local 74 for(ci=0;ci<_nchannels;ci++){ in read_pcm16() 76 s=buf[2*(xi*_nchannels+ci)+1]<<8|buf[2*(xi*_nchannels+ci)]; in read_pcm16() 78 samples[(nsamples+xi)*_nchannels+ci]=s; in read_pcm16() 113 int ci; in band_energy() local 116 for(ci=0;ci<_nchannels;ci++){ in band_energy() 118 x[ci*_window_sz+xk]=window[xk]*_in[(xi*_step+xk)*_nchannels+ci]; in band_energy() 124 for(ci=0;ci<_nchannels;ci++){ in band_energy() 131 re+=c[ti]*x[ci*_window_sz+xk]; in band_energy() 132 im-=s[ti]*x[ci*_window_sz+xk]; in band_energy() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 35 HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 36 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer() 37 return CreateHTMLPrinter(OS, CI.getPreprocessor()); in CreateASTConsumer() 45 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 89 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI, in BeginSourceFileAction() argument 99 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction() 100 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction() 109 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 114 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation() 116 if (FixAction->BeginSourceFile(CI, FEOpts.Inputs[0])) { in BeginInvocation() [all …]
|