LLVM
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
lib
Target
WebAssembly
WebAssemblyTargetTransformInfo.cpp
Go to the documentation of this file.
1
//===-- WebAssemblyTargetTransformInfo.cpp - WebAssembly-specific TTI -----===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
///
10
/// \file
11
/// \brief This file defines the WebAssembly-specific TargetTransformInfo
12
/// implementation.
13
///
14
//===----------------------------------------------------------------------===//
15
16
#include "
WebAssemblyTargetTransformInfo.h
"
17
#include "
llvm/Support/Debug.h
"
18
#include "
llvm/Target/CostTable.h
"
19
using namespace
llvm;
20
21
#define DEBUG_TYPE "wasmtti"
22
23
TargetTransformInfo::PopcntSupportKind
24
WebAssemblyTTIImpl::getPopcntSupport
(
unsigned
TyWidth) {
25
assert(
isPowerOf2_32
(TyWidth) &&
"Ty width must be power of 2"
);
26
// TODO: Make Math.popcount32 happen in WebAssembly.
27
return
TTI::PSK_Software
;
28
}
CostTable.h
Cost tables and simple lookup functions.
WebAssemblyTargetTransformInfo.h
This file a TargetTransformInfo::Concept conforming object specific to the WebAssembly target machine...
Debug.h
llvm::TargetTransformInfo::PopcntSupportKind
PopcntSupportKind
Flags indicating the kind of support for population count.
Definition:
TargetTransformInfo.h:289
llvm::WebAssemblyTTIImpl::getPopcntSupport
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
Definition:
WebAssemblyTargetTransformInfo.cpp:24
llvm::TargetTransformInfo::PSK_Software
Definition:
TargetTransformInfo.h:289
llvm::isPowerOf2_32
bool isPowerOf2_32(uint32_t Value)
isPowerOf2_32 - This function returns true if the argument is a power of two > 0. ...
Definition:
MathExtras.h:354
Generated on Mon Aug 31 2015 11:11:30 for LLVM by
1.8.6