This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <sys/syscall.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| #include <iostream> | |
| inline unsigned long long rdtsc(void) | |
| { | |
| unsigned hi, lo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| project(test) | |
| cmake_minimum_required(VERSION 3.15) | |
| find_package(OpenCV REQUIRED) | |
| include_directories(${OpenCV_INCLUDE_DIRS}) | |
| add_executable(cv cv.cpp) | |
| target_link_libraries(cv ${OpenCV_LIBS}) | |
| add_executable(cv1 cv1.cpp) | |
| target_link_libraries(cv1 ${OpenCV_LIBS}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Li Jinpei <leeking1994@163.com> | |
| pkgbase=llvm-git | |
| pkgname=( | |
| 'llvm-git' | |
| 'clang-git' | |
| ) | |
| pkgver=r165875.8e0778c059f | |
| pkgrel=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test_for_auto_loop: | |
| pushq %rbp | |
| pushq %rbx | |
| subq $8, %rsp | |
| call GetState@PLT | |
| cmpb $0, 26(%rax) | |
| movq %rax, %rbp | |
| je .L2 | |
| movq %rax, %rdi | |
| call _ZN9benchmark5State16StartKeepRunningEv@PLT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "cache_manager.h" | |
| #include "clang_complete.h" | |
| #include "include_complete.h" | |
| #include "message_handler.h" | |
| #include "project.h" | |
| #include "queue_manager.h" | |
| #include "timer.h" | |
| #include "working_files.h" | |
| #include "clang/Basic/FileManager.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "message_handler.h" | |
| #include "method.h" | |
| #include "project.h" | |
| #include "queue_manager.h" | |
| #include "timer.h" | |
| #include <loguru.hpp> | |
| #include "clang/Basic/FileManager.h" | |
| #include "clang/Basic/FileSystemOptions.h" | |
| #include "clang/Frontend/ASTUnit.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template <class C> | |
| class A { | |
| }; | |
| class B { | |
| using A = A<int>; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| set -e | |
| _target=aarch64-linux | |
| _root_dir=${PWD} | |
| _source_dir=${_root_dir}/source | |
| _host_dir=${_root_dir}/host | |
| _target_dir=${_host_dir}/${_target} | |
| mkdir -p ${_source_dir} | |
| mkdir -p ${_host_dir} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "benchmark/benchmark.h" | |
| #include <iostream> | |
| using namespace benchmark; | |
| int n = 1; | |
| void func(State &st, int i1) { | |
| std::cerr << i1 << std::endl; | |
| for (auto _ : st) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "benchmark/benchmark.h" | |
| #include <memory> | |
| using namespace benchmark; | |
| void f_movable(State &st, std::unique_ptr<int> pi) { | |
| for (auto _ : st) { | |
| for (int i = 0, i1 = *pi; i < i1; ++i) { | |
| DoNotOptimize(i); | |
| } |