search for: apsint

Displaying 20 results from an estimated 36 matches for "apsint".

Did you mean: apint
2018 Jul 04
2
Why SI.isSigned() is not equals to E->getType()->isSignedIntegerOrEnumerationType()?
...at github.com:Loong-Language/loong-llvm.git a05924fba80aa7173fce66b86d35ac2c57ad4dc4) (based on LLVM 7.0.0svn) Target: mips64el-redhat-linux Thread model: posix InstalledDir: /home/zhaixiang/project/Loong-Language/loong-llvm/build/bin DEBUG: bool {anonymous}::IntExprEvaluator::Success(const llvm::APSInt&, const clang::Expr*, clang::APValue&) 7096 0 0 DEBUG: bool {anonymous}::IntExprEvaluator::Success(const llvm::APSInt&, const clang::Expr*, clang::APValue&) 7096 0 0 DEBUG: bool {anonymous}::IntExprEvaluator::Success(const llvm::APSInt&, const clang::Expr*, clang::APValue&amp...
2019 Jan 31
2
Behaviour of APInt
I'm having trouble understanding how APInts should be used. The APInt documentation states that it 'is a functional replacement for common case unsigned integer type', but I'm not seeing this because the internal logic is that the value is always treated as negative if the most significant bit is set. I'm interested in an add or sub that could be using a negative value. I
2011 Nov 08
0
[LLVMdev] [cfe-dev] LLVM 3.0rc3 Testing Beginning
...e.Diagnostics /home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:62: Failure Value of: GetDiagnosticOutput(APValue()) Actual: "" Expected: "Uninitialized" /home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:63: Failure Value of: GetDiagnosticOutput(APValue(APSInt(APInt(16, 5)))) Actual: "" Expected: "5" /home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:66: Failure Value of: GetDiagnosticOutput(APValue(APFloat(APFloat::IEEEdouble, "3.14159"))) Actual: "" Expected: "3.141590e+00" /home/jay/llvm...
2009 Jan 05
2
[LLVMdev] Unit test patch, updated
...cific files that should be unittests, and others that should stay as llvm-as/llvm-dis tests? I'm assuming a##.* are prime candidates, what about the others? Are the double llvm-as/llvm-dis tests about bitcode printing/parsing or are they really testing some auto-simplification built-in to the APSInt class? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090105/abe1854f/attachment.html>
2013 May 02
4
[LLVMdev] int to StringRed conversion
Hello everyone, I have an integer and I want to convert it to StringRef in order to set metadata. setMetadata->(StringRef, MDNode*); It is there a native LLVM way to do it? 1. In the llvm::APSInt Class is toString() method, which seems it is not for this purpose 2. itoa and string are not part of LLVM 3. stringstream is not part of LLVM 4. to_string is not part of LLVM 5. any casting method? Also, I would like to get the metadata and convert it back to integer. Thank you ! --------------...
2011 Nov 07
6
[LLVMdev] LLVM 3.0rc3 Testing Beginning
Good day, LLVMers! We are starting on our third (and hopefully last) round of testing for LLVM 3.0. Please visit: http://llvm.org/pre-releases/3.0/rc3/ for the sources. There are also binaries for Darwin up there, with more to come during the week. Please build this release candidate, test it out on your projects, and let us know if you find any regressions from the 2.9 release. Please keep
2011 Nov 08
4
[LLVMdev] [cfe-dev] LLVM 3.0rc3 Testing Beginning
...llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:62: Failure > Value of: GetDiagnosticOutput(APValue()) > Actual: "" > Expected: "Uninitialized" > /home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:63: Failure > Value of: GetDiagnosticOutput(APValue(APSInt(APInt(16, 5)))) > Actual: "" > Expected: "5" > /home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:66: Failure > Value of: GetDiagnosticOutput(APValue(APFloat(APFloat::IEEEdouble, "3.14159"))) > Actual: "" > Expected: "3.141...
2008 Jan 24
1
[LLVMdev] Complex constant expressions?
...What would be a good technique for accomplishing this? > The APFloat functionality I wrote is the only means I'm aware of > in LLVM, via the return value. APFloat is derived from C code I Right. Use of APFloat and AP[S]Int directly is the way to do this. It would be useful to extend APSInt to capture information about overflow. > If LLVM's APFloat wrapper isn't conveying the info it is given > by APFloat, it needs to be improved :) No, it doesn't. The LLVM constant classes are intended for the optimizer and IR, not for a front-end to use. -Chris -- http://non...
2009 Jan 05
0
[LLVMdev] Unit test patch, updated
...ttests, and others that should stay as llvm-as/llvm-dis tests? > > I'm assuming a##.* are prime candidates, what about the others? Are > the double llvm-as/llvm-dis tests about bitcode printing/parsing or > are they really testing some auto-simplification built-in to the > APSInt class? Oh, sorry, I just meant the "a*" tests, which are basically doing constant folding (but not checking the results!) -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090105/4a9ec14a/a...
2009 Jan 19
3
[LLVMdev] value tracking
...a (potentially lazy) value tracking analysis that could be reused by several optimization passes. I don't know if it exists in llvm or not, but to my better knowledge it does not. ok there exists the ValueTracking class, but it does not provide a function like e.g. MayHaveTheValue(Value* v, APSInt x) to check if a given var v may ever have the value x My proposal: - create a value tracking analysis interface that can provide extensive info about vars (e.g. the set of possible values for a given vars, etc..) - implement that interface in several ways with different tradeoffs of precisen...
2013 May 02
0
[LLVMdev] int to StringRed conversion
...conescu < alexandruionutdiaconescu at gmail.com> wrote: > Hello everyone, > > I have an integer and I want to convert it to StringRef in order to set > metadata. > setMetadata->(StringRef, MDNode*); > > It is there a native LLVM way to do it? > > 1. In the llvm::APSInt Class is toString() method, which seems it is not > for this purpose > 2. itoa and string are not part of LLVM > 3. stringstream is not part of LLVM > 4. to_string is not part of LLVM > 5. any casting method? > > Also, I would like to get the metadata and convert it back to int...
2013 May 02
2
[LLVMdev] int to StringRed conversion
...have an integer and I want to convert it to StringRef in order to >>>>> set metadata. >>>>> setMetadata->(StringRef, MDNode*); >>>>> >>>>> It is there a native LLVM way to do it? >>>>> >>>>> 1. In the llvm::APSInt Class is toString() method, which seems it is >>>>> not for this purpose >>>>> 2. itoa and string are not part of LLVM >>>>> 3. stringstream is not part of LLVM >>>>> 4. to_string is not part of LLVM >>>>> 5. any casting met...
2017 Jul 29
2
Compiling LLVM to LLVM IR
Hello everyone, I'm trying to compile LLVM and Clang into LLVM IR with debug info. I know that clang++ -g2 -S -emit-llvm <filename> does this, but I'm unfamiliar with CMake. I tried changing CMAKE_CXX_FLAGS in CMakeCache.txt to "clang++ -g2 -S -emit-llvm," "-g2 -S -emit-llvm," and "-emit-llvm," but everything I tried resulted in a failed build, and/or
2013 May 02
0
[LLVMdev] int to StringRed conversion
...> >>>> I have an integer and I want to convert it to StringRef in order to set >>>> metadata. >>>> setMetadata->(StringRef, MDNode*); >>>> >>>> It is there a native LLVM way to do it? >>>> >>>> 1. In the llvm::APSInt Class is toString() method, which seems it is >>>> not for this purpose >>>> 2. itoa and string are not part of LLVM >>>> 3. stringstream is not part of LLVM >>>> 4. to_string is not part of LLVM >>>> 5. any casting method? >>>&gt...
2008 Dec 05
2
[LLVMdev] Build errors on trunk for about a week now.
.....\trunk\lib\Support\Annotation.cpp(67) : see reference to class template instantiation 'std::map<_Kty,_Ty,_Pr>' being compiled with [ _Kty=const char *, _Ty=unsigned int, _Pr=`anonymous-namespace'::StrCmp ] Allocator.cpp APSInt.cpp I cannot really look at it well since the termserv connection is effectively less then modem speed, but I looked at Annotation.cpp from the svn (also not fun, downloading at ~400bytes a second), but from a quick look-see, I would bet that on line 34, changing: bool operator()(const char *a...
2013 May 02
0
[LLVMdev] int to StringRed conversion
...nt to convert it to StringRef in order to >>>>>> set metadata. >>>>>> setMetadata->(StringRef, MDNode*); >>>>>> >>>>>> It is there a native LLVM way to do it? >>>>>> >>>>>> 1. In the llvm::APSInt Class is toString() method, which seems it is >>>>>> not for this purpose >>>>>> 2. itoa and string are not part of LLVM >>>>>> 3. stringstream is not part of LLVM >>>>>> 4. to_string is not part of LLVM >>>>>&gt...
2015 Sep 09
5
Building LLVM and Clang using Clang?
...rk/src/llvm-build $ make CC=/usr/local/bin/clang CXX=/usr/local/bin/clang++ [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APSInt.cpp.o [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttrs.cpp.o [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o [ 0%] Building CXX object lib/Support/CMake...
2009 Jan 01
0
[LLVMdev] Unit test patch, updated
On Jan 1, 2009, at 1:21 AM, Talin wrote: > Hooray! > > I'm thinking that getting unit tests for the classes in ADT should > be an > early goal. Can I suggest the AP[S]Int class? If you look in llvm/test/Integer you'll see a whole bunch of tests that really want to be unit tests but that aren't. :( -Chris
2009 Mar 19
1
[LLVMdev] Unit test patch, updated
...be unittests, and > others that should stay as llvm-as/llvm-dis tests? > > I'm assuming a##.* are prime candidates, what about the others? Are the > double llvm-as/llvm-dis tests about bitcode printing/parsing or are they > really testing some auto-simplification built-in to the APSInt class? > > Oh, sorry, I just meant the "a*" tests, which are basically doing constant > folding (but not checking the results!) > Here's a patch with conversion of a1.ll to unittest format, let me know if this is what you had in mind. -------------- next part ------------...
2008 Jan 24
0
[LLVMdev] Complex constant expressions?
Talin wrote:- > > Only two convert to integer. The convertToAPInt is unfortunately > > named; I'm not sure what it does but suspect it captures bitpatterns > > like you suggest. > > > > convertToInteger is the function I'm responsible for and it does > > float->int conversion according to IEEE754. If you want to place > > it in an APInt,